feat(config): add per-key model blacklist for providers

This commit is contained in:
hkfires
2025-11-27 21:57:07 +08:00
parent 72c7ef7647
commit f8cebb9343
4 changed files with 138 additions and 2 deletions

View File

@@ -62,6 +62,8 @@ ws-auth: false
# headers:
# X-Custom-Header: "custom-value"
# proxy-url: "socks5://proxy.example.com:1080"
# model-blacklist:
# - "gemini-2.0-pro-exp" # exclude specific models from this provider
# - api-key: "AIzaSy...02"
# API keys for official Generative Language API (legacy compatibility)
@@ -76,6 +78,8 @@ ws-auth: false
# headers:
# X-Custom-Header: "custom-value"
# proxy-url: "socks5://proxy.example.com:1080" # optional: per-key proxy override
# model-blacklist:
# - "gpt-5" # exclude specific models from this provider
# Claude API keys
#claude-api-key:
@@ -88,6 +92,8 @@ ws-auth: false
# models:
# - name: "claude-3-5-sonnet-20241022" # upstream model name
# alias: "claude-sonnet-latest" # client alias mapped to the upstream model
# model-blacklist:
# - "claude-3-5-sonnet-20241022" # exclude specific models from this provider
# OpenAI compatibility providers
#openai-compatibility: