gateway: all 281 models (shim + channel sql), python models loader
This commit is contained in:
+283
@@ -0,0 +1,283 @@
|
|||||||
|
[
|
||||||
|
"anthracite-org/magnum-v4-72b",
|
||||||
|
"bytedance-seed/seed-2-1-turbo",
|
||||||
|
"bytedance-seed/seed-2.0-lite",
|
||||||
|
"bytedance-seed/seed-2.0-mini",
|
||||||
|
"bytedance/ui-tars-1.5-7b",
|
||||||
|
"chat-latest",
|
||||||
|
"claude-fable-5",
|
||||||
|
"claude-fable-5-1",
|
||||||
|
"claude-fable-5-2",
|
||||||
|
"claude-haiku-4-5",
|
||||||
|
"claude-haiku-4-5-20251001",
|
||||||
|
"claude-haiku-5-5",
|
||||||
|
"claude-opus-4-5",
|
||||||
|
"claude-opus-4-5-20251101",
|
||||||
|
"claude-opus-4-6",
|
||||||
|
"claude-opus-4-7",
|
||||||
|
"claude-opus-4-8",
|
||||||
|
"claude-opus-5",
|
||||||
|
"claude-opus-5-5",
|
||||||
|
"claude-sonnet-4-5",
|
||||||
|
"claude-sonnet-4-5-20250929",
|
||||||
|
"claude-sonnet-4-6",
|
||||||
|
"claude-sonnet-5",
|
||||||
|
"claude-sonnet-5-5",
|
||||||
|
"cognitivecomputations/dolphin-mistral-24b-venice-edition",
|
||||||
|
"cohere/command-a-plus",
|
||||||
|
"deepseek/deepseek-chat",
|
||||||
|
"deepseek/deepseek-chat-v3.1",
|
||||||
|
"deepseek/deepseek-r1-0528",
|
||||||
|
"deepseek/deepseek-v3.2",
|
||||||
|
"deepseek/deepseek-v4-flash",
|
||||||
|
"deepseek/deepseek-v4-flash-0731",
|
||||||
|
"deepseek/deepseek-v4-flash-vision-exp",
|
||||||
|
"deepseek/deepseek-v4-pro",
|
||||||
|
"deepseek/deepseek-v4-pro-0813",
|
||||||
|
"deepseek/deepseek-v4.1-flash",
|
||||||
|
"deepseek/deepseek-v4.1-flash-1017",
|
||||||
|
"elorian/glimpse",
|
||||||
|
"fireworks/ember-1",
|
||||||
|
"gemini-2.5-flash-image",
|
||||||
|
"gemini-3-flash-preview",
|
||||||
|
"gemini-3-pro-image",
|
||||||
|
"gemini-3.1-flash-image",
|
||||||
|
"gemini-3.1-flash-lite",
|
||||||
|
"gemini-3.1-flash-lite-image",
|
||||||
|
"gemini-3.1-pro-preview",
|
||||||
|
"gemini-3.1-pro-preview-customtools",
|
||||||
|
"gemini-3.5-flash",
|
||||||
|
"gemini-3.5-flash-lite",
|
||||||
|
"gemini-3.6-flash",
|
||||||
|
"gemini-3.7-flash",
|
||||||
|
"gemini-3.8-flash",
|
||||||
|
"gemini-4-argon",
|
||||||
|
"gemini-4-carbon",
|
||||||
|
"gemini-flash-latest",
|
||||||
|
"gemini-flash-lite-latest",
|
||||||
|
"gemini-nano-banana-2.1",
|
||||||
|
"google/gemma-2-27b-it",
|
||||||
|
"google/gemma-3-12b-it",
|
||||||
|
"google/gemma-3-27b-it",
|
||||||
|
"google/gemma-3-4b-it",
|
||||||
|
"google/gemma-4-26b-a4b-it",
|
||||||
|
"google/gemma-4-31b-it",
|
||||||
|
"gpt-4.1",
|
||||||
|
"gpt-4.1-mini",
|
||||||
|
"gpt-4o",
|
||||||
|
"gpt-4o-mini",
|
||||||
|
"gpt-5",
|
||||||
|
"gpt-5-2025-08-07",
|
||||||
|
"gpt-5-mini",
|
||||||
|
"gpt-5-mini-2025-08-07",
|
||||||
|
"gpt-5-nano",
|
||||||
|
"gpt-5-pro",
|
||||||
|
"gpt-5.1",
|
||||||
|
"gpt-5.1-2025-11-13",
|
||||||
|
"gpt-5.2",
|
||||||
|
"gpt-5.2-2025-12-11",
|
||||||
|
"gpt-5.2-pro",
|
||||||
|
"gpt-5.2-pro-2025-12-11",
|
||||||
|
"gpt-5.3-codex",
|
||||||
|
"gpt-5.4",
|
||||||
|
"gpt-5.4-2026-03-05",
|
||||||
|
"gpt-5.4-mini",
|
||||||
|
"gpt-5.4-mini-2026-03-17",
|
||||||
|
"gpt-5.4-nano",
|
||||||
|
"gpt-5.4-nano-2026-03-17",
|
||||||
|
"gpt-5.4-pro",
|
||||||
|
"gpt-5.4-pro-2026-03-05",
|
||||||
|
"gpt-5.5",
|
||||||
|
"gpt-5.5-2026-04-23",
|
||||||
|
"gpt-5.5-pro",
|
||||||
|
"gpt-5.5-pro-2026-04-23",
|
||||||
|
"gpt-5.6-luna",
|
||||||
|
"gpt-5.6-sol",
|
||||||
|
"gpt-5.6-terra",
|
||||||
|
"gpt-6-astra",
|
||||||
|
"gpt-6-luna",
|
||||||
|
"gpt-6-sol",
|
||||||
|
"gpt-6.1-sol",
|
||||||
|
"gpt-6.1-terra",
|
||||||
|
"gpt-image-1.5",
|
||||||
|
"gpt-image-2",
|
||||||
|
"gpt-image-2-2026-04-21",
|
||||||
|
"gpt-image-2.5-flare",
|
||||||
|
"gpt-image-2.5-flare-2026-09-08",
|
||||||
|
"gpt-image-2.5-sunburst",
|
||||||
|
"gpt-image-2.5-sunburst-2026-09-08",
|
||||||
|
"gpt-image-2.6-flare",
|
||||||
|
"gpt-image-2.6-sunburst",
|
||||||
|
"gryphe/mythomax-l2-13b",
|
||||||
|
"ibm-granite/granite-4.2-8b",
|
||||||
|
"inclusionai/ling-3.0-flash",
|
||||||
|
"inclusionai/ling-3.0-flash-vl",
|
||||||
|
"inclusionai/ling-3.0-tiny",
|
||||||
|
"inclusionai/ling-3.1-flash",
|
||||||
|
"inference-net/schematron-v2-small",
|
||||||
|
"inference-net/schematron-v2-turbo",
|
||||||
|
"jev-1.13.0",
|
||||||
|
"jev-1.14.0",
|
||||||
|
"jev-latest",
|
||||||
|
"jev-preview",
|
||||||
|
"liquid/lfm-2.5-24b-a2b",
|
||||||
|
"liquid/lfm-3-1.7b",
|
||||||
|
"mancer/weaver",
|
||||||
|
"meta-llama/llama-3.1-8b-instruct",
|
||||||
|
"meta-llama/llama-3.2-1b-instruct",
|
||||||
|
"meta-llama/llama-3.2-3b-instruct",
|
||||||
|
"meta-llama/llama-3.3-70b-instruct",
|
||||||
|
"meta-llama/llama-4-maverick",
|
||||||
|
"meta-llama/llama-4-scout",
|
||||||
|
"meta-llama/llama-guard-4-12b",
|
||||||
|
"meta/muse-glimmer-30b",
|
||||||
|
"meta/muse-spark-open",
|
||||||
|
"microsoft/phi-4",
|
||||||
|
"minimax/minimax-m2.5",
|
||||||
|
"minimax/minimax-m2.7",
|
||||||
|
"minimax/minimax-m3",
|
||||||
|
"minimax/minimax-m3.1-flash",
|
||||||
|
"mistralai/codestral-2508",
|
||||||
|
"mistralai/devstral-2512",
|
||||||
|
"mistralai/ministral-14b-2512",
|
||||||
|
"mistralai/ministral-3b-2512",
|
||||||
|
"mistralai/ministral-8b-2512",
|
||||||
|
"mistralai/mistral-large-2407",
|
||||||
|
"mistralai/mistral-large-2512",
|
||||||
|
"mistralai/mistral-large-4-0",
|
||||||
|
"mistralai/mistral-medium-3",
|
||||||
|
"mistralai/mistral-medium-3-5",
|
||||||
|
"mistralai/mistral-medium-3.1",
|
||||||
|
"mistralai/mistral-nemo",
|
||||||
|
"mistralai/mistral-saba",
|
||||||
|
"mistralai/mistral-small-24b-instruct-2501",
|
||||||
|
"mistralai/mistral-small-2603",
|
||||||
|
"mistralai/mistral-small-3.1-24b-instruct",
|
||||||
|
"mistralai/mistral-small-3.2-24b-instruct",
|
||||||
|
"mistralai/mixtral-8x22b-instruct",
|
||||||
|
"mistralai/voxtral-small-24b-2507",
|
||||||
|
"moondream/moondream3-preview",
|
||||||
|
"moondream/moondream3.1-9b-a2b",
|
||||||
|
"moonshotai/kimi-k2",
|
||||||
|
"moonshotai/kimi-k2-0905",
|
||||||
|
"moonshotai/kimi-k2-thinking",
|
||||||
|
"moonshotai/kimi-k2.5",
|
||||||
|
"moonshotai/kimi-k2.6",
|
||||||
|
"moonshotai/kimi-k2.7-code",
|
||||||
|
"moonshotai/kimi-k3",
|
||||||
|
"moonshotai/kimi-k3.1-pro",
|
||||||
|
"morph/morph-v3-fast",
|
||||||
|
"morph/morph-v3-large",
|
||||||
|
"muse-ember-1.0",
|
||||||
|
"muse-spark-1.1",
|
||||||
|
"muse-spark-1.2",
|
||||||
|
"muse-spark-1.3",
|
||||||
|
"muse-wonder-1.0",
|
||||||
|
"nousresearch/hermes-4-405b",
|
||||||
|
"nvidia/nemotron-3-nano-30b-a3b",
|
||||||
|
"nvidia/nemotron-3-super-120b-a12b",
|
||||||
|
"nvidia/nemotron-3-ultra-550b-a55b",
|
||||||
|
"nvidia/nemotron-3.5-content-safety",
|
||||||
|
"nvidia/nemotron-3.5-lightning",
|
||||||
|
"nvidia/nemotron-3.5-super-vl",
|
||||||
|
"nvidia/switchyard",
|
||||||
|
"o3",
|
||||||
|
"openai/gpt-oss-120b",
|
||||||
|
"openai/gpt-oss-20b",
|
||||||
|
"openai/gpt-oss-safeguard-20b",
|
||||||
|
"openrouter/auto",
|
||||||
|
"openrouter/auto-beta",
|
||||||
|
"openrouter/auto-code",
|
||||||
|
"openrouter/free",
|
||||||
|
"openrouter/pareto-code",
|
||||||
|
"particle-ai/particle-1",
|
||||||
|
"perceptron/perceptron-mk1",
|
||||||
|
"perceptron/perceptron-mk1.5",
|
||||||
|
"perplexity/sonar",
|
||||||
|
"perplexity/sonar-deep-research",
|
||||||
|
"perplexity/sonar-pro",
|
||||||
|
"perplexity/sonar-pro-search",
|
||||||
|
"perplexity/sonar-reasoning-pro",
|
||||||
|
"qwen/qwen-2.5-72b-instruct",
|
||||||
|
"qwen/qwen-2.5-coder-32b-instruct",
|
||||||
|
"qwen/qwen2.5-vl-72b-instruct",
|
||||||
|
"qwen/qwen3-14b",
|
||||||
|
"qwen/qwen3-235b-a22b-2507",
|
||||||
|
"qwen/qwen3-235b-a22b-thinking-2507",
|
||||||
|
"qwen/qwen3-30b-a3b",
|
||||||
|
"qwen/qwen3-30b-a3b-instruct-2507",
|
||||||
|
"qwen/qwen3-32b",
|
||||||
|
"qwen/qwen3-coder",
|
||||||
|
"qwen/qwen3-coder-next",
|
||||||
|
"qwen/qwen3-next-80b-a3b-instruct",
|
||||||
|
"qwen/qwen3-vl-235b-a22b-instruct",
|
||||||
|
"qwen/qwen3-vl-30b-a3b-instruct",
|
||||||
|
"qwen/qwen3-vl-8b-instruct",
|
||||||
|
"qwen/qwen3.5-122b-a10b",
|
||||||
|
"qwen/qwen3.5-27b",
|
||||||
|
"qwen/qwen3.5-35b-a3b",
|
||||||
|
"qwen/qwen3.5-397b-a17b",
|
||||||
|
"qwen/qwen3.5-9b",
|
||||||
|
"qwen/qwen3.6-27b",
|
||||||
|
"qwen/qwen3.6-35b-a3b",
|
||||||
|
"qwen/qwen3.8-2.4t-a95b",
|
||||||
|
"qwen/qwen3.8-27b",
|
||||||
|
"reflection/beam-1.0-501b-a23b",
|
||||||
|
"rekaai/reka-edge",
|
||||||
|
"rekaai/reka-flash-3",
|
||||||
|
"relace/relace-apply-3",
|
||||||
|
"relace/relace-search",
|
||||||
|
"ricursiveai/ripple-65b-preview",
|
||||||
|
"sao10k/l3-lunaris-8b",
|
||||||
|
"sao10k/l3.1-euryale-70b",
|
||||||
|
"scaledown/extract",
|
||||||
|
"scaledown/summarize",
|
||||||
|
"stepfun/step-3.7-flash",
|
||||||
|
"stepfun/step-5-preview",
|
||||||
|
"tencent/hy-mt2-1.8b",
|
||||||
|
"tencent/hy-mt2-30b-a3b",
|
||||||
|
"tencent/hy-mt2-7b",
|
||||||
|
"tencent/hy3",
|
||||||
|
"tencent/hy4",
|
||||||
|
"tencent/hy4-preview",
|
||||||
|
"thedrummer/cydonia-24b-v4.1",
|
||||||
|
"thedrummer/skyfall-36b-v2",
|
||||||
|
"thedrummer/unslopnemo-12b",
|
||||||
|
"thinkingmachines/inkling",
|
||||||
|
"thinkingmachines/inkling-small",
|
||||||
|
"typesafe/jev-router",
|
||||||
|
"unbiased/pareto-26.10",
|
||||||
|
"undi95/remm-slerp-l2-13b",
|
||||||
|
"upstage/solar-mini4",
|
||||||
|
"upstage/solar-pro4",
|
||||||
|
"x-ai/grok-4.20",
|
||||||
|
"x-ai/grok-4.20-multi-agent",
|
||||||
|
"x-ai/grok-4.3",
|
||||||
|
"x-ai/grok-4.5",
|
||||||
|
"x-ai/grok-4.6",
|
||||||
|
"x-ai/grok-4.7",
|
||||||
|
"x-ai/grok-build-0.1",
|
||||||
|
"xiaomi/mimo-v2.5",
|
||||||
|
"xiaomi/mimo-v2.5-pro",
|
||||||
|
"xiaomi/mimo-v2.6-flash",
|
||||||
|
"xiaomi/mimo-v2.6-pro",
|
||||||
|
"z-ai/glm-4.5-air",
|
||||||
|
"z-ai/glm-4.5v",
|
||||||
|
"z-ai/glm-4.6",
|
||||||
|
"z-ai/glm-4.6v",
|
||||||
|
"z-ai/glm-4.7",
|
||||||
|
"z-ai/glm-4.7-flash",
|
||||||
|
"z-ai/glm-5",
|
||||||
|
"z-ai/glm-5.1",
|
||||||
|
"z-ai/glm-5.2",
|
||||||
|
"z-ai/glm-5.3",
|
||||||
|
"z-ai/glm-5.3-flash",
|
||||||
|
"~deepseek/deepseek-flash-latest",
|
||||||
|
"~deepseek/deepseek-pro-latest",
|
||||||
|
"~deepseek/deepseek-v4-flash-latest",
|
||||||
|
"~moonshotai/kimi-latest",
|
||||||
|
"~unbiased/pareto-latest",
|
||||||
|
"~x-ai/grok-latest",
|
||||||
|
"~z-ai/glm-flash-latest",
|
||||||
|
"~z-ai/glm-latest"
|
||||||
|
]
|
||||||
File diff suppressed because one or more lines are too long
+13
-7
@@ -23,13 +23,19 @@ KEY_CACHE = {} # url -> {'key': str, 'ts': float}
|
|||||||
LOCK = threading.Lock()
|
LOCK = threading.Lock()
|
||||||
KEY_TTL = 240 # seconds; JWT lives minutes
|
KEY_TTL = 240 # seconds; JWT lives minutes
|
||||||
|
|
||||||
MODELS = [
|
def _load_models():
|
||||||
'claude-opus-5-5', 'claude-sonnet-5-5', 'claude-haiku-5-5', 'claude-fable-5-2',
|
path = os.path.join(BASE, 'models.json')
|
||||||
'gpt-6.1-sol', 'gpt-6-astra', 'gpt-6-luna', 'gpt-5.5', 'gpt-5.4-mini',
|
try:
|
||||||
'gemini-4-argon', 'gemini-3.8-flash',
|
with open(path, encoding='utf-8') as f:
|
||||||
'x-ai/grok-4.7', 'moonshotai/kimi-k3', 'deepseek/deepseek-v4.1-flash-1017',
|
m = json.load(f)
|
||||||
'z-ai/glm-5.3',
|
if isinstance(m, list) and m:
|
||||||
]
|
return m
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
return ['claude-opus-5-5', 'gpt-6.1-sol', 'gemini-4-argon']
|
||||||
|
|
||||||
|
|
||||||
|
MODELS = _load_models()
|
||||||
|
|
||||||
|
|
||||||
def load_sites():
|
def load_sites():
|
||||||
|
|||||||
Reference in New Issue
Block a user