fix(litellm): disable stale copilot registrations
This commit is contained in:
@@ -232,7 +232,6 @@ services:
|
||||
- "18804:4000"
|
||||
volumes:
|
||||
- ./litellm-config.yaml:/app/config.yaml:ro
|
||||
- ./litellm-copilot-tokens:/root/.config/litellm/github_copilot
|
||||
environment:
|
||||
- LITELLM_PORT=4000
|
||||
- LITELLM_DROP_PARAMS=true
|
||||
@@ -241,7 +240,6 @@ services:
|
||||
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
|
||||
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
|
||||
- ZAI_API_KEY=${ZAI_API_KEY:-}
|
||||
- GITHUB_COPILOT_TOKEN_DIR=/root/.config/litellm/github_copilot
|
||||
- DATABASE_URL=postgresql://litellm:litellm_password@litellm-db:5432/litellm
|
||||
- LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY:-sk-1234}
|
||||
- LITELLM_SALT_KEY=${LITELLM_SALT_KEY:-}
|
||||
|
||||
+3
-23
@@ -146,29 +146,9 @@ add_model "zai-glm-5" "openai/glm-5" "ZAI_API_KEY" "https://api.z.
|
||||
add_model "glm-4.7-flash" "openai/glm-4.7-flash" "ZAI_API_KEY" "https://api.z.ai/api/coding/paas/v4"
|
||||
add_model "glm-5" "openai/glm-5" "ZAI_API_KEY" "https://api.z.ai/api/coding/paas/v4"
|
||||
|
||||
# GitHub Copilot (token-file auth, no API key)
|
||||
add_copilot_model "copilot-gpt-4o" "gpt-4o"
|
||||
add_copilot_model "copilot-gpt-4.1" "gpt-4.1"
|
||||
add_copilot_model "copilot-gpt-5-mini" "gpt-5-mini"
|
||||
add_copilot_model "copilot-gpt-5.1" "gpt-5.1"
|
||||
add_copilot_model "copilot-gpt-5.2" "gpt-5.2"
|
||||
add_copilot_model "copilot-gpt-5.1-codex" "gpt-5.1-codex"
|
||||
add_copilot_model "copilot-gpt-5.1-codex-max" "gpt-5.1-codex-max"
|
||||
add_copilot_model "copilot-gpt-5.1-codex-mini" "gpt-5.1-codex-mini"
|
||||
add_copilot_model "copilot-gpt-5.2-codex" "gpt-5.2-codex"
|
||||
add_copilot_model "copilot-gpt-5.3-codex" "gpt-5.3-codex"
|
||||
add_copilot_model "copilot-claude-opus-4.6" "claude-opus-4.6"
|
||||
add_copilot_model "copilot-claude-opus-4.6-fast" "claude-opus-4.6-fast"
|
||||
add_copilot_model "copilot-claude-sonnet-4.6" "claude-sonnet-4.6"
|
||||
add_copilot_model "copilot-claude-sonnet-4.5" "claude-sonnet-4.5"
|
||||
add_copilot_model "copilot-claude-sonnet-4" "claude-sonnet-4"
|
||||
add_copilot_model "copilot-claude-opus-4.5" "claude-opus-4.5"
|
||||
add_copilot_model "copilot-claude-haiku-4.5" "claude-haiku-4.5"
|
||||
add_copilot_model "copilot-gemini-2.5-pro" "gemini-2.5-pro"
|
||||
add_copilot_model "copilot-gemini-3-flash" "gemini-3-flash-preview"
|
||||
add_copilot_model "copilot-gemini-3-pro" "gemini-3-pro-preview"
|
||||
add_copilot_model "copilot-gemini-3.1-pro" "gemini-3.1-pro-preview"
|
||||
add_copilot_model "copilot-grok-code-fast" "grok-code-fast-1"
|
||||
# GitHub Copilot models are intentionally not registered here.
|
||||
# The token-file auth path caused repeated 403 refresh loops in LiteLLM when
|
||||
# Copilot credentials expired, slowing /health/liveliness responses.
|
||||
|
||||
# Local models (llama.cpp — no API key, custom model_info)
|
||||
if ! echo "$EXISTING" | grep -qx "gemma-3-12b-local"; then
|
||||
|
||||
Reference in New Issue
Block a user