mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
* feat(view_logs.tsx): show model id + api base in request logs easier debugging * fix(index.tsx): fix length of api base easier viewing * refactor(leftnav.tsx): show models tab to team admin * feat(model_dashboard.tsx): add explainer for what the 'models' page is for team admin helps them understand how they can use it * feat(model_management_endpoints.py): restrict model add by team to just team admin allow team admin to add models via non-team keys (e.g. ui token) * test(test_add_update_models.py): update unit testing for new behaviour * fix(model_dashboard.tsx): show user the models * feat(proxy_server.py): add new query param 'user_models_only' to `/v2/model/info` Allows user to retrieve just the models they've added Used in UI to show internal users just the models they've added * feat(model_dashboard.tsx): allow team admins to view their own models * fix: allow ui user to fetch model cost map * feat(add_model_tab.tsx): require team admins to specify team when onboarding models * fix(_types.py): add `/v1/model/info` to info route `/model/info` was already there * fix(model_info_view.tsx): allow user to edit a model they created * fix(model_management_endpoints.py): allow team admin to update team model * feat(model_managament_endpoints.py): allow team admin to delete team models * fix(model_management_endpoints.py): don't require team id to be set when adding a model * fix(proxy_server.py): fix linting error * fix: fix ui linting error * fix(model_management_endpoints.py): ensure consistent auth checks on all model calls * test: remove old test - function no longer exists in same form * test: add updated mock testing |
||
---|---|---|
.. | ||
caching | ||
experimental_mcp_client | ||
integrations | ||
litellm_core_utils | ||
llms | ||
proxy | ||
rerank_api | ||
responses | ||
router_strategy | ||
log.txt | ||
readme.md | ||
test_cost_calculator.py | ||
test_main.py |
Testing for litellm/
This directory 1:1 maps the the litellm/
directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/
- Make it easy for contributors to add tests for the
litellm/
package and easily run tests without needing LLM API keys.
File name conventions
litellm/proxy/test_caching_routes.py
maps tolitellm/proxy/caching_routes.py
test_<filename>.py
maps tolitellm/<filename>.py