Skip to content

Conversation

@dhawansolanki
Copy link

Issue #113
The code is trying to access event.data.response.usage.total_tokens at apps/rowboat_agents/src/graph/core.py , but event.data.response.usage is None. This happens when the response object does not include usage information for non-OpenAI models like Azure OpenAI.

Fix:
Adding a guard clause before accessing total_tokens to prevent the AttributeError when usage is None.

Added a guard clause before accessing total_tokens to prevent the AttributeError when usage is None
@vercel
Copy link

vercel bot commented May 12, 2025

@dhawansolanki is attempting to deploy a commit to the RowBoat Labs Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented May 12, 2025

CLA assistant check
All committers have signed the CLA.

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.

2 participants