Tech
[Wunder] 使用 OpenCode 调用 V2EX AI API 的配置文件例子
之前的 OpenCode 配置例子帖子中的配置文件非常 bare bone:
https://edge.v2ex.com/t/1227634
所以其实很多 OpenCode 的额外功能会因此没有打开。
这里是一个我目前测试过的更完整的配置文件例子:
文件位置 ~/.config/opencode/opencode.jsonc
内容是目前 V2EX 上能够提供的 3 个 GLM 模型及其能力,其中 GLM 5.3 Flash 能支持图片。
{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": [],
"provider": {
"v2ex": {
"name": "v2ex",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://edge.v2ex.com/chat/v1"
},
"mode...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX