forked from agents/opencode
Compare commits
5 Commits
3129cd0b58
...
ce4994d952
| Author | SHA1 | Date | |
|---|---|---|---|
| ce4994d952 | |||
| 564c1934a6 | |||
| 4516384f0e | |||
| ff94c77eb1 | |||
| 3facc31494 |
@@ -1,10 +0,0 @@
|
|||||||
# Provider
|
|
||||||
AI_GATEWAY_BASE_URL=https://ai-gateway.furtherverse.com
|
|
||||||
AI_GATEWAY_API_KEY=
|
|
||||||
|
|
||||||
# MCP
|
|
||||||
EXA_API_KEY=
|
|
||||||
CONTEXT7_API_KEY=
|
|
||||||
|
|
||||||
# Windows
|
|
||||||
OPENCODE_GIT_BASH_PATH=%USERPROFILE%\scoop\apps\git\current\bin\bash.exe
|
|
||||||
@@ -18,15 +18,15 @@
|
|||||||
git clone <repo-url> ~/.config/opencode
|
git clone <repo-url> ~/.config/opencode
|
||||||
```
|
```
|
||||||
|
|
||||||
3. 参考 `.env.example` 将以下环境变量配置到系统中
|
3. 将以下环境变量配置到系统中
|
||||||
|
|
||||||
| 变量 | 必填 | 说明 |
|
| 变量 | 必填 | 说明 |
|
||||||
|------|------|------|
|
|------|------|------|
|
||||||
| `AI_GATEWAY_BASE_URL` | 是 | 模型服务端点 |
|
| `AI_GATEWAY_BASE_URL` | 是 | 模型服务端点,例如 `https://ai-gateway.furtherverse.com` |
|
||||||
| `AI_GATEWAY_API_KEY` | 是 | 模型服务密钥 |
|
| `AI_GATEWAY_API_KEY` | 是 | 模型服务密钥 |
|
||||||
| `EXA_API_KEY` | 否 | [Exa](https://exa.ai) 搜索,提供联网能力,不配则使用默认额度 |
|
| `EXA_API_KEY` | 否 | [Exa](https://exa.ai) 搜索,提供联网能力,不配则使用默认额度 |
|
||||||
| `CONTEXT7_API_KEY` | 否 | [Context7](https://context7.com) 文档查询,提供库文档检索,不配则使用默认额度 |
|
| `CONTEXT7_API_KEY` | 否 | [Context7](https://context7.com) 文档查询,提供库文档检索,不配则使用默认额度 |
|
||||||
| `OPENCODE_GIT_BASH_PATH` | 否 | Windows 用户需指定 Git Bash 路径,否则工具调用可能异常 |
|
| `OPENCODE_GIT_BASH_PATH` | 否 | Windows 用户需指定 Git Bash 路径,否则工具调用可能异常,例如 `%USERPROFILE%\scoop\apps\git\current\bin\bash.exe` |
|
||||||
|
|
||||||
4. 选择 oh-my-openagent 配置
|
4. 选择 oh-my-openagent 配置
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"$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": { "model": "anthropic/claude-opus-4-7", "variant": "high" },
|
"sisyphus": { "model": "anthropic/claude-opus-4-7", "variant": "high" },
|
||||||
"hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" },
|
"hephaestus": { "model": "openai/gpt-5.5", "variant": "medium" },
|
||||||
"oracle": { "model": "openai/gpt-5.4", "variant": "high" },
|
"oracle": { "model": "openai/gpt-5.5", "variant": "high" },
|
||||||
"librarian": { "model": "openai/gpt-5.4-mini" },
|
"librarian": { "model": "openai/gpt-5.4-mini" },
|
||||||
"explore": { "model": "openai/gpt-5.4-mini" },
|
"explore": { "model": "openai/gpt-5.4-mini" },
|
||||||
"multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" },
|
"multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" },
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"categories": {
|
"categories": {
|
||||||
"visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
"visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
||||||
"ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" },
|
"ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" },
|
||||||
"deep": { "model": "openai/gpt-5.4", "variant": "medium" },
|
"deep": { "model": "openai/gpt-5.5", "variant": "medium" },
|
||||||
"artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
"artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
||||||
"quick": { "model": "openai/gpt-5.4-mini" },
|
"quick": { "model": "openai/gpt-5.4-mini" },
|
||||||
"unspecified-low": { "model": "anthropic/claude-sonnet-4-6" },
|
"unspecified-low": { "model": "anthropic/claude-sonnet-4-6" },
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"$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": { "model": "openai/gpt-5.4", "variant": "medium" },
|
"sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" },
|
||||||
"hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" },
|
"hephaestus": { "model": "openai/gpt-5.5", "variant": "medium" },
|
||||||
"oracle": { "model": "openai/gpt-5.4", "variant": "high" },
|
"oracle": { "model": "openai/gpt-5.5", "variant": "high" },
|
||||||
"librarian": { "model": "openai/gpt-5.4-mini" },
|
"librarian": { "model": "openai/gpt-5.4-mini" },
|
||||||
"explore": { "model": "openai/gpt-5.4-mini" },
|
"explore": { "model": "openai/gpt-5.4-mini" },
|
||||||
"multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" },
|
"multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" },
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"categories": {
|
"categories": {
|
||||||
"visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
"visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
||||||
"ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" },
|
"ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" },
|
||||||
"deep": { "model": "openai/gpt-5.4", "variant": "medium" },
|
"deep": { "model": "openai/gpt-5.5", "variant": "medium" },
|
||||||
"artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
"artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" },
|
||||||
"quick": { "model": "openai/gpt-5.4-mini" },
|
"quick": { "model": "openai/gpt-5.4-mini" },
|
||||||
"unspecified-low": { "model": "gpt-5.3-codex", "variant": "medium" },
|
"unspecified-low": { "model": "gpt-5.3-codex", "variant": "medium" },
|
||||||
|
|||||||
+10
-10
@@ -39,6 +39,12 @@
|
|||||||
"apiKey": "{env:AI_GATEWAY_API_KEY}"
|
"apiKey": "{env:AI_GATEWAY_API_KEY}"
|
||||||
},
|
},
|
||||||
"models": {
|
"models": {
|
||||||
|
"gpt-5.5": {
|
||||||
|
"name": "GPT-5.5",
|
||||||
|
"reasoning": true,
|
||||||
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
|
||||||
|
"limit": { "context": 1050000, "input": 920000, "output": 130000 }
|
||||||
|
},
|
||||||
"gpt-5.4": {
|
"gpt-5.4": {
|
||||||
"name": "GPT-5.4",
|
"name": "GPT-5.4",
|
||||||
"reasoning": true,
|
"reasoning": true,
|
||||||
@@ -88,11 +94,11 @@
|
|||||||
"modalities": { "input": ["text"], "output": ["text"] },
|
"modalities": { "input": ["text"], "output": ["text"] },
|
||||||
"limit": { "context": 204800, "output": 131072 }
|
"limit": { "context": 204800, "output": 131072 }
|
||||||
},
|
},
|
||||||
"glm-5": {
|
"kimi-k2.6": {
|
||||||
"name": "GLM-5",
|
"name": "Kimi K2.6",
|
||||||
"reasoning": true,
|
"reasoning": true,
|
||||||
"modalities": { "input": ["text"], "output": ["text"] },
|
"modalities": { "input": ["text", "image", "video"], "output": ["text"] },
|
||||||
"limit": { "context": 204800, "output": 131072 }
|
"limit": { "context": 262144, "output": 65536 }
|
||||||
},
|
},
|
||||||
"kimi-k2p5-turbo": {
|
"kimi-k2p5-turbo": {
|
||||||
"name": "Kimi K2.5 Turbo",
|
"name": "Kimi K2.5 Turbo",
|
||||||
@@ -100,12 +106,6 @@
|
|||||||
"modalities": { "input": ["text", "image"], "output": ["text"] },
|
"modalities": { "input": ["text", "image"], "output": ["text"] },
|
||||||
"limit": { "context": 256000, "output": 256000 }
|
"limit": { "context": 256000, "output": 256000 }
|
||||||
},
|
},
|
||||||
"kimi-k2.5": {
|
|
||||||
"name": "Kimi K2.5",
|
|
||||||
"reasoning": true,
|
|
||||||
"modalities": { "input": ["text", "image", "video"], "output": ["text"] },
|
|
||||||
"limit": { "context": 262144, "output": 262144 }
|
|
||||||
},
|
|
||||||
"minimax-m2.7": {
|
"minimax-m2.7": {
|
||||||
"name": "MiniMax M2.7",
|
"name": "MiniMax M2.7",
|
||||||
"reasoning": true,
|
"reasoning": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user