Skip to content

Commit b8dfa35

Browse files
authored
doc: fix readme azure example code (#571)
1 parent fcec4dd commit b8dfa35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ openai.api_version = "2023-05-15"
9090
chat_completion = openai.ChatCompletion.create(deployment_id="deployment-name", model="gpt-3.5-turbo", messages=[{"role": "user", "content": "Hello world"}])
9191

9292
# print the completion
93-
print(completion.choices[0].message.content)
93+
print(chat_completion.choices[0].message.content)
9494
```
9595

9696
Please note that for the moment, the Microsoft Azure endpoints can only be used for completion, embedding, and fine-tuning operations.

0 commit comments

Comments
 (0)