We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c2c534 commit 5329944Copy full SHA for 5329944
src/agents/extensions/models/litellm_model.py
@@ -262,10 +262,10 @@ async def stream_response(
262
),
263
model=self.model,
264
)
265
- cost = litellm.completion_cost(completion_response=mock_response)
+ cost = litellm.completion_cost(completion_response=mock_response) # type: ignore[attr-defined]
266
# Attach cost as a custom attribute on the Response object so
267
# run.py can access it when creating the Usage object.
268
- final_response._litellm_cost = cost
+ final_response._litellm_cost = cost # type: ignore[attr-defined]
269
except Exception:
270
# If cost calculation fails (e.g., unknown model), continue
271
# without cost.
0 commit comments