-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Initial Checks
- I confirm that I'm using the latest version of Pydantic AI
- I confirm that I searched for my issue in https://github.com/pydantic/pydantic-ai/issues before opening this issue
Description
When viewing evaluation results in Logfire, there's a discrepancy between the token counts displayed in the right panel (pydantic-evals metrics) and the aggregated metrics shown in the left panel (logfire metrics).
Screenshot
Image source: https://ai.pydantic.dev/evals/how-to/logfire-integration/#what-gets-sent-to-logfire
Even in the official documentation screenshot, the numbers don't match between the two panels.
Question
Either I am not able to understand the logic behind the difference or there might be some bug here. Can someone please help me understand this?
Example Code
Python, Pydantic AI & LLM client version
python="3.10.0"
pydantic-ai="1.20.0"