-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure client Faraday errors when trying to use client.completions #549
Comments
Figured it out. The problem is MS has a different pattern for URLs for completions. The format of the url is:
deploymentID is just the name of the deployment you created in Azure Openai. It can equal the the underlying model name but it doesn't have to to e.g.
ruby-openai is sending
|
Poking around and found the solution. If you need to use completions api in azure then you need to configure the base_uri as shown below AND you have to call the completions api as shown in the examples for chat with messages parameter
If you use the example for completions
For using assistants, vector stores, files api the base_uri should be:
|
Thank you! |
Describe the bug
First off, thanks for creating this and all the work you put into it. This is a fantastic resource. I can't figure out why I can get everything working as expected with an Azure OpenAI endpoint except the client.completions calls.
Assistants, vector stores , etc all work as expected with the same azure endpoint. It's just the completions that are not working
To Reproduce
Expected behavior
Expect to get a completion response back. I have an azure deployment called "gpt-4o"
Desktop (please complete the following information):
Additional context
Files, vector stores, assistants all work as expected. It's just completions where I get the Faraday 404.
The text was updated successfully, but these errors were encountered: