Skip to content

Commit 2294aa1

Browse files
authored
Update code snippets in README.md files
1 parent b1c14e3 commit 2294aa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/ai/azure-ai-inference/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ response = client.complete(
271271
)
272272

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

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

368369
client.close()
369370
```

0 commit comments

Comments
 (0)