Skip to content

Commit 7b96580

Browse files
authored
fix(genapi): typo in async snippets
1 parent 3c29a2f commit 7b96580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/generative-apis/how-to/query-language-models.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ The service also supports asynchronous mode for any chat completion.
212212
)
213213

214214
async def main():
215-
stream = client.chat.completions.create(
215+
stream = await client.chat.completions.create(
216216
model="llama-3.1-8b-instruct",
217217
messages=[{
218218
"role": "user",

0 commit comments

Comments
 (0)