Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Usage tokens no longer automatically show #548

Copy link
Copy link
Open
@handrew

Description

@handrew
Issue body actions

I updated from 0.0.9 to 0.0.11 and my tokens logging broke. I fixed it by explicitly setting model_settings=ModelSettings(include_usage=True) in my agent definition.

Docs say that include_usage defaults to true. However, I don't think this is true unless the model is OpenAI.

Cursory glance suggests this is the line that causes the issue:

default_include_usage = True if cls.is_openai(client) else None

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.