mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Improving logging in oai.completion to show token_count (#179)
* update * update doc --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com> Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
This commit is contained in:
@@ -148,9 +148,11 @@ print('Hello world!')
|
||||
```""",
|
||||
)
|
||||
print(conversations)
|
||||
autogen.ChatCompletion.print_usage_summary()
|
||||
autogen.ChatCompletion.start_logging(compact=False)
|
||||
user.send("""Execute temp.py""", assistant)
|
||||
print(autogen.ChatCompletion.logged_history)
|
||||
autogen.ChatCompletion.print_usage_summary()
|
||||
autogen.ChatCompletion.stop_logging()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user