mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-04 01:48:57 +00:00
* test(gemini): tool-use prompt tokens must be priced as input Signed-off-by: Delweng <delweng@gmail.com> * fix(gemini): price tool-use prompt tokens as input toolUsePromptTokenCount was folded into usage.prompt_tokens but left out of prompt_tokens_details.text_tokens, and generic_cost_per_token bills input from text_tokens, so URL context / code execution / File Search tool tokens were counted but never charged. Search-grounded responses keep adding zero via the grounding-aware billable count, and promptTokensDetails absent still leaves text_tokens None so billing falls back to the full prompt_tokens Signed-off-by: Delweng <delweng@gmail.com> --------- Signed-off-by: Delweng <delweng@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_context_circulation.py | ||
| test_function_call_args_serialization.py | ||
| test_gemini_image_url_missing_field.py | ||
| test_gemini_streaming_tool_call_finish_reason.py | ||
| test_grounding_requests.py | ||
| test_thought_signature_in_tool_call_id.py | ||
| test_tool_call_followed_by_text_assistant.py | ||
| test_transformation.py | ||
| test_vertex_ai_gemini_transformation.py | ||
| test_vertex_and_google_ai_studio_gemini.py | ||
| test_vertex_gemini_unbound_local_error.py | ||