Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tokens(in/out) is not exposed to python. #1271

Closed
Sidd065 opened this issue Dec 25, 2024 · 1 comment · Fixed by #1277
Closed

Tokens(in/out) is not exposed to python. #1271

Sidd065 opened this issue Dec 25, 2024 · 1 comment · Fixed by #1277

Comments

@Sidd065
Copy link

Sidd065 commented Dec 25, 2024

Every sync BAML function call is logged in the console like this one:

Client: FLASH2 (gemini-2.0-flash-exp) - 7675ms. StopReason: "STOP". Tokens(in/out): 6500/571

However raw.__str__() for the same call returns:

Client: FLASH2 (gemini-2.0-flash-exp) - 7675ms. StopReason: "STOP".

Is this expected behaviour?

@aaronvg
Copy link
Contributor

aaronvg commented Dec 30, 2024

Fixed in #1277

@aaronvg aaronvg closed this as completed Dec 30, 2024
github-merge-queue bot pushed a commit that referenced this issue Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants