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

o1 release breaks token usage stats #1556

Open
lucapericlp opened this issue Sep 13, 2024 · 0 comments · May be fixed by #1555
Open

o1 release breaks token usage stats #1556

lucapericlp opened this issue Sep 13, 2024 · 0 comments · May be fixed by #1555
Labels
bug Something isn't working

Comments

@lucapericlp
Copy link

Describe the bug

Traceback (most recent call last):
  File "/home/luca/.cache/pypoetry/virtualenvs/<NAME>-p2Ot1sDh-py3.12/bin/oaieval", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/luca/.cache/pypoetry/virtualenvs/<NAME>-p2Ot1sDh-py3.12/lib/python3.12/site-packages/evals/cli/oaieval.py", line 304, in main
    run(args)
  File "/home/luca/.cache/pypoetry/virtualenvs/<NAME>-p2Ot1sDh-py3.12/lib/python3.12/site-packages/evals/cli/oaieval.py", line 227, in run
    add_token_usage_to_result(result, recorder)
  File "/home/luca/.cache/pypoetry/virtualenvs/<NAME>-p2Ot1sDh-py3.12/lib/python3.12/site-packages/evals/cli/oaieval.py", line 279, in add_token_usage_to_result
    key: sum(u[key] if u[key] is not None else 0 for u in usage_events)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unsupported operand type(s) for +: 'int' and 'dict'

To Reproduce

Run any eval

Code snippets

No response

OS

macOS

Python version

v3.12

Library version

3.0.1.post1

@lucapericlp lucapericlp added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant