litellm-mirror/tests/litellm/litellm_core_utils
Krish Dholakia 36308a31be
Gemini-2.5-flash - support reasoning cost calc + return reasoning content (#10141)
* build(model_prices_and_context_window.json): add vertex ai gemini-2.5-flash pricing

* build(model_prices_and_context_window.json): add gemini reasoning token pricing

* fix(vertex_and_google_ai_studio_gemini.py): support counting thinking tokens for gemini

allows accurate cost calc

* fix(utils.py): add reasoning token cost calc to generic cost calc

ensures gemini-2.5-flash cost calculation is accurate

* build(model_prices_and_context_window.json): mark gemini-2.5-flash as 'supports_reasoning'

* feat(gemini/): support 'thinking' + 'reasoning_effort' params + new unit tests

allow controlling thinking effort for gemini-2.5-flash models

* test: update unit testing

* feat(vertex_and_google_ai_studio_gemini.py): return reasoning content if given in gemini response

* test: update model name

* fix: fix ruff check

* test(test_spend_management_endpoints.py): update tests to be less sensitive to new keys / updates to usage object

* fix(vertex_and_google_ai_studio_gemini.py): fix translation
2025-04-19 09:20:52 -07:00
..
llm_cost_calc Gemini-2.5-flash - support reasoning cost calc + return reasoning content (#10141) 2025-04-19 09:20:52 -07:00
prompt_templates fix(factory.py): correct indentation for message index increment in ollama, This fixes bug #9822 (#9943) 2025-04-12 09:50:40 -07:00
test_dd_tracing.py (bug fix) - dd tracer, only send traces when user opts into sending dd-trace (#8928) 2025-03-01 10:53:36 -08:00
test_litellm_logging.py test: add unit test 2025-03-24 14:45:20 -07:00
test_realtime_streaming.py Realtime API Cost tracking (#9795) 2025-04-07 16:43:12 -07:00
test_safe_json_dumps.py (Bug fix) - Cache Health not working when configured with prometheus service logger (#8687) 2025-02-20 13:41:56 -08:00
test_streaming_chunk_builder_utils.py fix(stream_chunk_builder_utils.py): don't set index on modelresponse (#10063) 2025-04-16 10:11:47 -07:00
test_streaming_handler.py test: fix flaky test 2025-04-07 19:42:58 -07:00