Questions tagged [openai-api]

OpenAI makes several AI products, including ChatGPT, Dall-E, Whisper. Use for questions about the OpenAI API, and not for general support.

Use for questions about using the OpenAI API. All question should be according to the scope of Stack Overflow and following the How to ask a good question and Expected Behavior guidelines.

Before asking a question, read the documentation.

If you will include non-original code, be sure to provide proper attribution.

Don't use for questions about using ChatGPT as an end-user. Don't use for questions about responses given by ChatGPT that aren't directly related to a programming issue using the OpenAI API.

Related tags:


OpenAI Community

https://community.openai.com/

1620 questions
-1
votes
1 answer

How to resolve a segment mapping issue on aws lambda?

{"errorMessage": "/var/task/nvidia/cufft/lib/libcufft.so.10: failed to map segment from shared object", "errorType": "OSError", "requestId": I am not sure how to fix this. I am trying to import detoxify and deploy it via a container on Amazon Web…
-1
votes
0 answers

I want to compare the context of two pdf's and summarize the changes in NLP

I did a project when you ask questions in NLP to Pdf's and answers using pinecone db and indexes, openAI embeddings, however, this problem is different you need to compare two pdf's find out the difference and summarize it . Do you know how I can…
Nisha
  • 1
-1
votes
1 answer

Restricting tables for the package "laravel-ask-database"

I'm new to the world of laravel development I came across a package to generate natural queries for the database called "laravel-ask-database", is there a way I can restrict which tables this package has access to?
T17
  • 71
  • 7
-1
votes
1 answer

OpenAI ChatGPT (GPT-3.5) API error in WordPress PHP code: "Invalid URL (POST /v4/engines/davinci-codex/completions)"

I've asked ChatGPT to generate a code to be incorporated in WordPress' function.php to generate tags automatically for all my newly created or updated post. Here is the code: function add_tags_with_gpt($post_ID) { // Vérifier si le contenu de…
Greg
  • 3,025
  • 13
  • 58
  • 106
-1
votes
1 answer

Django request returning null?

I'm building a chatbot withing Django using chat GPT's API and I'm following this tutorial https://www.youtube.com/watch?v=qrZGfBBlXpk. Anyway I don't see any difference in my code yet I'm running into a peculiar problem when I request from my html…
userr554
  • 57
  • 5
-1
votes
1 answer

OpenAI Chat Completions API: How do I use a function to store conversation memory?

I am trying to make a chatbot using OpenAI Function Calling. I have taken the basic example of getting the current weather condition, which was given in the documentation. What I want to implement is to have a memory with it. I tried to append into…
-1
votes
1 answer

Openai Function Calling returns incomplete arguments object "{"

It appears that the function calling response is quite unreliable, as it does not return a complete arguments object. Here is an example of the JSON Schema for a function that I'm trying to get it to call. export const getCoinPrice:…
-1
votes
1 answer

how can i print every line while using openai api in the terminal as the line are being generated?

while using openai api, how can i print each line when there are multiple lines in the assistant reply and as they're being generated? let's take an example: USER: generate me a code to check if a number is prime or not GPT 3.5: sure! Here's a…
-1
votes
1 answer

OpenAI GPT-4 API error: "The model: gpt-4 does not exist"

I have code as below, it works perfect with model gpt-3.5-turbo but not with gpt-4: $your_prompt = "Prompt...." // GPT-4 API call $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.openai.com/v1/chat/completions'); curl_setopt($ch,…
-1
votes
1 answer

Is there a local version of chatgpt that does not propagate any data out of the EU to comply with the GDPR?

I am thinking of using chatgpt in my professional endevours, however as a EU citisen we are bound to the GDPR. What ways can I use it? Are there any models for local instalation? Are there any GDPR comling API accesses? I am reading the API…
TACGI
  • 1
-1
votes
1 answer

OpenAI Embeddings API: How do I extract the embedding vector from the response?

Im transitioning from js to ts and experimenting with the embedding API of OpenAI. My goal here is to get the array values of the "embedding" key from the JSON response & store it on a variable, simple as that, the problem is i haven't been able to…
Gabo RM
  • 23
  • 3
-1
votes
1 answer

override langchain llm completion call to handle 400 moderated response

Using langchain==0.0.198, langchainplus-sdk==0.0.8, python==3.10 I am working with openAI, Azure. Currently, the moderation endpoint that was available in the non-Azure openAI is no longer available with Azure openAI, and has been "bundled" with the…
camelBack
  • 748
  • 2
  • 11
  • 30
-1
votes
1 answer

Escape Characters in Json

The escape sequence for the OpenAI code translator is not debugging through big codes. small codes like addition, subtraction. conversion and all are working. I tried to create OpenAI code translator using C#, and got the result in converting python…
Jes
  • 1
  • 2
-1
votes
1 answer

OpenAI GPT-3 API error: Why do I still get the "You exceeded your current quota" error even though I set up a paid account (subscribed)?

Why did I get RateLimitError: You exceeded your current quota, please check your plan and billing details.? I was subscribed, and this is my first request. I paid for my subscription. Here is my code: import openai KEY = "mykeyhere it is checked…
Your Death
  • 11
  • 2
-1
votes
1 answer

Invalid _type: undefined in loadQAChain in TypeScript LangChain

I am trying to use loadQAChain with a custom prompt. The code to make the chain looks like this: import { OpenAI } from 'langchain/llms/openai'; import { PineconeStore } from 'langchain/vectorstores/pinecone'; import { LLMChain, loadQAChain,…
1 2 3
99
100