mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* fix(cli): carry configured service tiers and display names into the lite codex catalog lite codex wrote litellm-models.json from the installed Codex's own entries but never passed the operator's model_info.service_tiers or model_info.display_name into the rows, so a Codex it launched showed only Codex's stock tiers and names while the proxy's own Codex route served the configured ones. The CLI now reads both from the /v1/model/info response it already fetches for alias upstreams: the tiers of every unpaused deployment under a public name, and the first deployment's display name when it is a non-blank string, mirroring how the router feeds the served catalog * fix(cli): read the deployments the key's team routes to for lite codex tiers, names, and upstreams * fix(cli): take lite codex's configured tiers and names from the proxy's served codex catalog lite codex now reads the display name and service tiers the proxy's own Codex catalog serves the key, for each name a deployment configures them on and for aliases with no deployment row, so the proxy's team routing, model_group_alias, wildcard and key alias rules decide them. Unconfigured names keep the installed Codex's own entries. This drops the client-side tier rules and the /key/info call * fix(cli): scope lite codex's configured tiers to shared deployments and keep the installed codex's tier names * fix(cli): let lite codex take the served values for an alias whose target the key can't see * test(cli): type the generic tier helper * fix(cli): skip the served Codex catalog for a team's all-proxy-models entry and warn only when a configured value is left out * test(cli): type the codex catalog test helpers --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| __init__.py | ||
| conftest.py | ||
| test_chat.py | ||
| test_client.py | ||
| test_credentials.py | ||
| test_http_client.py | ||
| test_http_commands.py | ||
| test_keys.py | ||
| test_model_groups.py | ||
| test_models.py | ||
| test_teams.py | ||
| test_users.py | ||