Skip to content

Commit

Permalink
Update code snippets in README.md files
Browse files Browse the repository at this point in the history
  • Loading branch information
dargilco authored Feb 14, 2025
1 parent b1c14e3 commit 2294aa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/ai/azure-ai-inference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ response = client.complete(
)

print(response.choices[0].message.content)
print(f"\nToken usage: {response.usage}")
```

<!-- END SNIPPET -->
Expand Down Expand Up @@ -363,7 +364,7 @@ for update in response:
if update.choices and update.choices[0].delta:
print(update.choices[0].delta.content or "", end="", flush=True)
if update.usage:
print(f"\n\nUsage: {update.usage}")
print(f"\n\nToken usage: {update.usage}")

client.close()
```
Expand Down

0 comments on commit 2294aa1

Please sign in to comment.