convert provider config to new v2 providers config

This commit is contained in:
2026-10-20 15:13:02 +02:00
parent 5b7c1f98bd
commit 1ce6cea6c9

View File

@@ -3,41 +3,57 @@
"model": "weave/glm-5.3-flash", "model": "weave/glm-5.3-flash",
"agents": { "agents": {
"title": { "title": {
"model": "weave/glm-5.3-flash", "model": "weave/glm-5.3-flash"
}, }
}, },
"provider": { "providers": {
"weave": { "weave": {
"npm": "@ai-sdk/openai-compatible", "package": "@opencode/ai/providers/openai-compatible",
"options": { "settings": {
"baseURL": "https://weave.redpencil.io/v1", "baseURL": "https://weave.redpencil.io/v1",
"apiKey": "{env:WEAVE_API_KEY}" "apiKey": "{env:WEAVE_API_KEY}"
}, },
"models": { "models": {
"kimi-K2.7-code": { "kimi-K2.7-code": {
"tools": true "capabilities": {
"tools": true
}
}, },
"glm-5.3": { "glm-5.3": {
"tools": true "capabilities": {
"tools": true
}
}, },
"glm-5.3-flash": { "glm-5.3-flash": {
"tools": true "capabilities": {
"tools": true
}
}, },
"mistral-glm-5.2": { "mistral-glm-5.2": {
"tools": true, "capabilities": {
"reasoning": true, "tools": true,
"options": { "reasoning": {
"supported": true
}
},
"settings": {
"reasoningEffort": "xhigh" "reasoningEffort": "xhigh"
} }
}, },
"devstral": { "devstral": {
"tools": true "capabilities": {
"tools": true
}
}, },
"local-qwen3.6:27b": { "local-qwen3.6:27b": {
"tools": true "capabilities": {
"tools": true
}
}, },
"mistral-medium": { "mistral-medium": {
"tools": true "capabilities": {
"tools": true
}
} }
} }
} }