This repository was archived by the owner on Jul 23, 2024. It is now read-only.
Old Endpoint? #98
IsaacGemal
started this conversation in
Ideas
Replies: 1 comment
-
|
Yes, that's true! I'll nudge the team and ask when they'll be updating to the 1.x series code. You would also need to upgrade the client to AzureOpenAI for user with Azure. See https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints |
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.
-
Hi there.
Just something I noticed in the azure openai studio - I checked out the sample code and it looks like it has the old openai endpoint

I believe that
completion = openai.ChatCompletion.create(should becomecompletion = client.chat.completions.createPer this link
Something like this?
The code I just pasted is straight from GPT-4 asking it to update the existing code, so treat it with caution.
Beta Was this translation helpful? Give feedback.
All reactions