8000 Add support for response_cost for LiteLLM model for non streaming response by thetushargoyal · Pull Request #198 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content

Add support for response_cost for LiteLLM model for non streaming response #198

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

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update lite_llm.py
  • Loading branch information
thetushargoyal committed Apr 15, 2025
commit c699d20975a002cc70d561202b31db924a748d8e
1 change: 0 additions & 1 deletion src/google/adk/models/lite_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ def _model_response_to_generate_content_response(
response_cost = None
if hasattr(response, "_hidden_params") and isinstance(response._hidden_params, dict):
response_cost = response._hidden_params.get("response_cost")
response_cost = response_cost*86

return _message_to_generate_content_response(message, response_cost=response_cost)

Expand Down
0