Files
test-ai-sdk/opencode.json
abearxiong 96ecbd026e feat: Initialize test-ai-sdk project with Bun
- Add README.md with installation and usage instructions.
- Create bun.lock and pnpm-lock.yaml for dependency management.
- Implement main functionality in index.ts to test AI providers.
- Add opencode.json configuration for various AI providers.
- Create package.json to define project dependencies and scripts.
- Add TypeScript configuration in tsconfig.json for project setup.
- Implement test scripts for different AI providers in src directory.
2026-02-02 02:17:55 +08:00

104 lines
2.5 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"autoshare": false,
"share": "disabled",
"autoupdate": true,
"permission": "allow",
"watcher": {
"ignore": [
"node_modules/**",
"dist/**",
".git/**"
]
},
"plugin": [],
"provider": {
"custom-zhipu": {
"npm": "@ai-sdk/openai-compatible",
"name": "国内智谱AI",
"models": {
"GLM-4.7": {
"name": "GLM-4.7"
}
},
"options": {
"baseURL": "https://open.bigmodel.cn/api/coding/paas/v4",
"apiKey": "{env:ZHIPU_API_KEY}"
}
},
"custom-minimax": {
"npm": "@ai-sdk/anthropic",
"name": "国内MiniMax",
"models": {
"MiniMax-M2.1": {
"name": "MiniMax-M2.1"
}
},
"options": {
"baseURL": "https://api.minimaxi.com/anthropic/v1",
"apiKey": "{env:MINIMAX_API_KEY}"
}
},
"custom-doubao": {
"npm": "@ai-sdk/openai-compatible",
"name": "国内火山AI",
"models": {
"ark-code-latest": {
"name": "ark-code-latest"
}
},
"options": {
"baseURL": "https://ark.cn-beijing.volces.com/api/coding/v3",
"apiKey": "{env:VOLCENGINE_API_KEY}"
}
},
"custom-bailian": {
"npm": "@ai-sdk/openai-compatible",
"name": "国内百炼AI开发订阅 xx",
"models": {
"qwen3-coder-plus": {
"name": "qwen3-coder-plus"
}
},
"options": {
"baseURL": "https://coding.dashscope.aliyuncs.com/v1",
"apiKey": "{env:BAILIAN_CODE_API_KEY}"
}
},
"custom-cnb": {
"npm": "@ai-sdk/openai-compatible",
"name": "国内CNB开发订阅 xx",
"models": {
"hunyuan": {
"name": "hunyuan-a13b"
}
},
"options": {
"baseURL": "https://api.cnb.cool/{env:CNB_REPO_SLUG}/-/ai/",
"apiKey": "{env:CNB_API_KEY}"
}
},
"custom-kevisual": {
"npm": "@ai-sdk/openai-compatible",
"name": "自用newapi搭建的开发集合订阅 xx",
"models": {
"qwen3-coder-plus": {
"name": "qwen3-coder-plus"
},
"ark-code-latest": {
"name": "ark-code-latest"
},
"GLM-4.7": {
"name": "GLM-4.7"
},
"MiniMax-M2.1": {
"name": "MiniMax-M2.1"
}
},
"options": {
"baseURL": "https://newapi.kevisual.cn/v1",
"apiKey": "{env:KEVISUAL_NEW_API_KEY}"
}
}
}
}