We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c14e3 commit 2294aa1Copy full SHA for 2294aa1
sdk/ai/azure-ai-inference/README.md
@@ -271,6 +271,7 @@ response = client.complete(
271
)
272
273
print(response.choices[0].message.content)
274
+print(f"\nToken usage: {response.usage}")
275
```
276
277
<!-- END SNIPPET -->
@@ -363,7 +364,7 @@ for update in response:
363
364
if update.choices and update.choices[0].delta:
365
print(update.choices[0].delta.content or "", end="", flush=True)
366
if update.usage:
- print(f"\n\nUsage: {update.usage}")
367
+ print(f"\n\nToken usage: {update.usage}")
368
369
client.close()
370
0 commit comments