Skip to content

[Cursor] fix: Correct reasoning_tokens access for o1 model #132

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

grapeot
Copy link
Owner

@grapeot grapeot commented May 1, 2025

This PR fixes the unit test failure for test_query_o1_model by correcting how reasoning_tokens are accessed in tools/llm_api.py. Updated to use response.usage.reasoning_tokens directly.

Updated tools/llm_api.py to correctly access `response.usage.reasoning_tokens`
instead of the non-existent `response.usage.completion_tokens_details.reasoning_tokens`.
This resolves the unit test failure for `test_query_o1_model` on the multi-agent branch.
@grapeot grapeot merged commit 7e8d90b into multi-agent May 1, 2025
1 check passed
@grapeot grapeot deleted the fix/multi-agent-o1-test branch May 1, 2025 05:00
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 this pull request may close these issues.

1 participant