Commit 7e8d90b
authored
[Cursor] fix: Correct reasoning_tokens access for o1 model (#132)
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.1 parent b74684d commit 7e8d90b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
0 commit comments