通过 LiteLLM 连接模型服务
用户 config 写 [model_providers.litellm],base_url 是 http://localhost:4000/v1,env_key = LITELLM_API_KEY,wire_api = responses。再用 ~/.codex/litellm.config.toml 和 --profile litellm。
[model_providers.litellm]
name = "litellm"
base_url = "http://localhost:4000/v1"
env_key = "LITELLM_API_KEY"
wire_api = "responses"
stream_idle_timeout_ms = 7200000