Skip to content

APIConnectionError on Python 3.11.9, SK 1.2.0 #9274

Answered by moonbox3
giobb asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, @giobb, thanks for reaching out.

You'll want to configure your endpoint to be: https://certain-ep.openai.azure.com/ (without the /openai/). Additionally, please use the endpoint keyword argument, instead of the base_url keyword argument. The base_url keyword argument is assuming you're passing in the base_url like: https://certain-ep.openai.azure.com/openai/deployments/gpt-4o.

As part of initializing the AzureChatCompletion service, we create the base_url from the endpoint and the chat_deployment_name such as:

https://certain-ep.openai.azure.com/openai/deployments/gpt-4o

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@moonbox3
Comment options

Answer selected by sophialagerkranspandey
Comment options

You must be logged in to vote
4 replies
@moonbox3
Comment options

@giobb
Comment options

@giobb
Comment options

@moonbox3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants