feat(ai,coding-agent): add Grok 4.7 support

This commit is contained in:
Armin Ronacher 2026-09-22 00:07:34 +02:00
parent 1b6ddca87c
commit 1a584a7a56
9 changed files with 45 additions and 14 deletions

View file

@ -2030,12 +2030,7 @@ async function loadModelsDevData(): Promise<Model<any>[]> {
compat: { ...XAI_RESPONSES_COMPAT },
reasoning: m.reasoning === true,
input: m.modalities?.input?.includes("image") ? ["text", "image"] : ["text"],
cost: {
input: m.cost?.input || 0,
output: m.cost?.output || 0,
cacheRead: m.cost?.cache_read || 0,
cacheWrite: m.cost?.cache_write || 0,
},
cost: getModelsDevCost(m.cost),
contextWindow: m.limit?.context || 4096,
maxTokens: m.limit?.output || 4096,
});