Replies: 3 comments 1 reply
-
You're probably almost there! Like what the error says, try changing client = OpenAI(
base_url=base_url,
api_key=api_key,
)
response = client.chat.completions.create(
model=self.config['model_actual'],
messages=self.messages,
stream=stream,
n=1,
frequency_penalty=0,
presence_penalty=0,
seed=12345,
top_p=0.1,
max_completion_tokens=max_tokens
) |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm getting the same error on GPT-5 in JS despite using const gpt5 = new ChatOpenAI({
modelName: 'gpt-5',
maxCompletionTokens: 1000,
apiKey: OPENAI_API_KEY,
temperature: 0.1,
});
This problem does not occur for |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you solve it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using LangChain to make OpenAI API calls, and it works fine with the GPT-4o model.
Here’s the relevant part of the code:
If the model is set to GPT-5, the following error message appears:
Error message:
Please help me out.
Beta Was this translation helpful? Give feedback.
All reactions