Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehh committed Dec 14, 2024
1 parent 43122fe commit 4331dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/usage/multimodal_inputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Then, you can use the OpenAI client as follows:
return result
audio_base64 = encode_base64_content_from_url(audio_url)
chat_completion_from_url = client.chat.completions.create(
chat_completion_from_base64 = client.chat.completions.create(
messages=[{
"role": "user",
"content": [
Expand All @@ -373,7 +373,7 @@ Then, you can use the OpenAI client as follows:
max_completion_tokens=64,
)
result = chat_completion_from_url.choices[0].message.content
result = chat_completion_from_base64.choices[0].message.content
print("Chat completion output from input audio:", result)
chat_completion_from_url = client.chat.completions.create(
Expand Down

0 comments on commit 4331dd7

Please sign in to comment.