chore: 简化配置文件格式,添加 Gemini 3.1 Pro 模型

This commit is contained in:
2026-04-03 00:10:22 +08:00
parent 7cc5251acc
commit 4b784e0ac1
2 changed files with 25 additions and 84 deletions
+19 -84
View File
@@ -1,89 +1,27 @@
{ {
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json", "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json",
"agents": { "agents": {
"sisyphus": { "sisyphus": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"model": "anthropic/claude-opus-4-6", "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" },
"variant": "max" "oracle": { "model": "openai/gpt-5.4", "variant": "high" },
}, "librarian": { "model": "ai-gateway/minimax-m2.7" },
"hephaestus": { "explore": { "model": "ai-gateway/minimax-m2.7" },
"model": "openai/gpt-5.4", "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" },
"variant": "medium" "prometheus": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
}, "metis": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
"oracle": { "momus": { "model": "openai/gpt-5.4", "variant": "xhigh" },
"model": "openai/gpt-5.4", "atlas": { "model": "anthropic/claude-sonnet-4-6" },
"variant": "high" "sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" }
},
"librarian": {
"model": "ai-gateway/minimax-m2.7"
},
"explore": {
"model": "ai-gateway/minimax-m2.7"
},
"multimodal-looker": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"prometheus": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"metis": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"momus": {
"model": "openai/gpt-5.4",
"variant": "xhigh"
},
"atlas": {
"model": "anthropic/claude-sonnet-4-6"
},
"sisyphus-junior": {
"model": "anthropic/claude-sonnet-4-6"
}
}, },
"categories": { "categories": {
"visual-engineering": { "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" },
"model": "google/gemini-3.1-pro-preview", "ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" },
"variant": "high", "deep": { "model": "openai/gpt-5.4", "variant": "medium" },
"fallback_models": [ "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" },
{ "quick": { "model": "openai/gpt-5.4-mini" },
"model": "anthropic/claude-opus-4-6", "unspecified-low": { "model": "anthropic/claude-sonnet-4-6" },
"variant": "max" "unspecified-high": { "model": "anthropic/claude-opus-4-6", "variant": "max" },
} "writing": { "model": "ai-gateway/kimi-k2p5-turbo" }
]
},
"ultrabrain": {
"model": "openai/gpt-5.4",
"variant": "xhigh"
},
"deep": {
"model": "openai/gpt-5.4",
"variant": "medium"
},
"artistry": {
"model": "google/gemini-3.1-pro-preview",
"variant": "high",
"fallback_models": [
{
"model": "anthropic/claude-opus-4-6",
"variant": "max"
}
]
},
"quick": {
"model": "openai/gpt-5.4-mini"
},
"unspecified-low": {
"model": "anthropic/claude-sonnet-4-6"
},
"unspecified-high": {
"model": "anthropic/claude-opus-4-6",
"variant": "max"
},
"writing": {
"model": "ai-gateway/kimi-k2p5-turbo"
}
}, },
"experimental": { "experimental": {
"disable_omo_env": true, "disable_omo_env": true,
@@ -118,9 +56,6 @@
} }
} }
}, },
"runtime_fallback": {
"enabled": true
},
"git_master": { "git_master": {
"commit_footer": false, "commit_footer": false,
"include_co_authored_by": false, "include_co_authored_by": false,
+6
View File
@@ -82,6 +82,12 @@
"apiKey": "{env:AI_GATEWAY_API_KEY}" "apiKey": "{env:AI_GATEWAY_API_KEY}"
}, },
"models": { "models": {
"gemini-3.1-pro-preview": {
"name": "Gemini 3.1 Pro",
"reasoning": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 128000, "output": 128000 } // github copilot only has a 128k context size
},
"glm-5.1": { "glm-5.1": {
"name": "GLM-5.1", "name": "GLM-5.1",
"reasoning": true, "reasoning": true,