mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-31 06:56:59 +00:00
* fix(cli): give lite codex aliases of a Codex-known model that model's catalog entry lite codex built its Codex model catalog from /v1/models ids only, so a proxy alias of a model Codex knows (api-gpt-6-luna for openai/gpt-6-luna) got the fallback entry. That entry has no supports_search_tool or tool_mode, so Codex sent every MCP and app tool inline and each turn cost far more input tokens. lite now reads each listed model's upstream from the proxy's /v1/model/info (team_public_model_name when set, else model_name, first deployment wins) and passes it to the shared catalog builder, the same way the proxy's own Codex route does. If that request fails, the catalog is built as before. * fix(cli): give a lite codex alias an upstream only when all its deployments route to one OpenAI model * fix(cli): cap a lite codex alias's context window at its listed max_input_tokens and count only OpenAI-hosted deployments * fix(cli): keep Codex's tier, upgrade and reasoning defaults off lite codex aliases * fix(cli): keep Codex's own effort, verbosity and promo off lite codex aliases and skip credential-hosted deployments --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| autoroute | ||
| __init__.py | ||
| conftest.py | ||
| test_agents.py | ||
| test_auth_commands.py | ||
| test_chat_commands.py | ||
| test_claude_settings.py | ||
| test_codex_settings.py | ||
| test_config_commands.py | ||
| test_configure_commands.py | ||
| test_credentials_commands.py | ||
| test_debug_commands.py | ||
| test_encryption_commands.py | ||
| test_global_options.py | ||
| test_interface.py | ||
| test_keys_commands.py | ||
| test_model_groups_commands.py | ||
| test_models_commands.py | ||
| test_pi.py | ||
| test_pkce_login.py | ||
| test_statusline_script.py | ||
| test_up_commands.py | ||
| test_users_commands.py | ||