GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — schema rejects valid custom provider model in top-level model field · Issue #46248 · anomalyco/opencode Closed DescriptionDescriptionThe schema https://opencode.ai/config.json depends on a giant enum from models.dev "model": { "type": "string", "description": "Model to use in the format of provider/model, eg anthropic/claude-2", "$ref": "https://models.dev/model-schema.json#/$defs/Model" } When creating a custom provider, this results in a schema validation error. Example minimal opencode.json: {
"$schema": "https://opencode.ai/config.json",
"provider": {
"internal": {
"npm": "@ai-sdk/openai-compatible",
"models": {
"Qwen/Qwen3-Coder-30B-A3B-Instruct": {}
}
}
},
"model": "internal/Qwen/Qwen3-Coder-30B-A3B-Instruct"
}Custom providers should be valid. PluginsNo response OpenCode versionNo response Steps to reproduceNo response Screenshot and/or share linkNo response Operating SystemNo response TerminalNo response Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |