litellm-mirror/litellm/types
Krish Dholakia 0dbd663877
fix(cost_calculator.py): handle custom pricing at deployment level fo… (#9855)
* fix(cost_calculator.py): handle custom pricing at deployment level for router

* test: add unit tests

* fix(router.py): show custom pricing on UI

check correct model str

* fix: fix linting error

* docs(custom_pricing.md): clarify custom pricing for proxy

Fixes https://github.com/BerriAI/litellm/issues/8573#issuecomment-2790420740

* test: update code qa test

* fix: cleanup traceback

* fix: handle litellm param custom pricing

* test: update test

* fix(cost_calculator.py): add router model id to list of potential model names

* fix(cost_calculator.py): fix router model id check

* fix: router.py - maintain older model registry approach

* fix: fix ruff check

* fix(router.py): router get deployment info

add custom values to mapped dict

* test: update test

* fix(utils.py): update only if value is non-null

* test: add unit test
2025-04-09 22:13:10 -07:00
..
integrations Squashed commit of the following: (#9709) 2025-04-02 21:24:54 -07:00
llms [Feat] - SSO - Use MSFT Graph API to assign users to teams (#9865) 2025-04-09 18:26:43 -07:00
mcp_server fix listing mcp tools 2025-03-29 18:40:58 -07:00
passthrough_endpoints Squashed commit of the following: (#9709) 2025-04-02 21:24:54 -07:00
proxy/management_endpoints [SSO] Connect LiteLLM to Azure Entra ID Enterprise Application (#9872) 2025-04-09 20:26:59 -07:00
adapter.py feat(anthropic_adapter.py): support for translating anthropic params to openai format 2024-07-10 00:32:28 -07:00
caching.py (bug fix) - Fix Cache Health Check for Redis when redis_version is float (#8979) 2025-03-04 21:26:18 -08:00
completion.py feat(endpoints.py): support adding credentials by model id 2025-03-14 12:32:32 -07:00
embedding.py Removed config dict type definition 2024-05-17 10:39:00 +08:00
files.py LiteLLM Contributor PRs (02/18/2025). (#8643) 2025-02-19 21:52:46 -08:00
fine_tuning.py (feat) POST /fine_tuning/jobs support passing vertex specific hyper params (#7490) 2025-01-01 07:44:48 -08:00
guardrails.py test: update test 2025-02-10 22:13:58 -08:00
rerank.py build(pyproject.toml): add new dev dependencies - for type checking (#9631) 2025-03-29 11:02:13 -07:00
router.py fix(cost_calculator.py): handle custom pricing at deployment level fo… (#9855) 2025-04-09 22:13:10 -07:00
scheduler.py Squashed commit of the following: (#9709) 2025-04-02 21:24:54 -07:00
services.py add operational metrics for pod lock manager v2 arch 2025-04-04 16:41:07 -07:00
tag_management.py [Feat] LiteLLM Tag/Policy Management (#9813) 2025-04-07 21:54:24 -07:00
utils.py feat(realtime/): add token tracking + log usage object in spend logs … (#9843) 2025-04-09 22:11:00 -07:00