Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04b9f09

Browse files
whysagemegamanics
authored andcommitted
doc: fix readme azure example code (openai#571)
1 parent c80f9cd commit 04b9f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
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)