Skip to content

Commit 4934118

Browse files
Copilotpamelafox
andcommitted
Add /openai/v1 to the endpoint URL
Co-authored-by: pamelafox <297042+pamelafox@users.noreply.github.com>
1 parent 5687b57 commit 4934118

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎example.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
token_provider = azure.identity.get_bearer_token_provider(credential, "https://cognitiveservices.azure.com/.default")
2020

2121
client = openai.OpenAI(
22-
base_url=f"https://{os.getenv('AZURE_OPENAI_SERVICE')}.openai.azure.com",
22+
base_url=f"https://{os.getenv('AZURE_OPENAI_SERVICE')}.openai.azure.com/openai/v1",
2323
api_key=token_provider,
2424
)
2525

0 commit comments

Comments
 (0)