rowboat
rowboat copied to clipboard
Fix AttributeError when usage is None for non-Openai models
trafficstars
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.
@dhawansolanki is attempting to deploy a commit to the RowBoat Labs Team on Vercel.
A member of the Team first needs to authorize it.