-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
Problem
- The model name needs to match the key in model.ts; otherwise, an error will occur.
- npm cannot be configured, and even interfaces such as opt.createGoogle cannot be used within the plugin.
- ctrl + t cannot switch the thinking mode of claude model
Solution
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"my-anthropic": {
"name": "my-Anthropic",
"npm": "@ai-sdk/anthropic",
"options": {
"baseURL": "https://llm-proxy.xx.com/aws",
"apiKey": "user-key-xxx"
},
"models": {
"claude-opus-4-5-20251101": {
"name": "my-claude-opus-4-5",
"limit": {
"context": 200000,
"output": 64000
}
},
"claude-sonnet-4-5-20250929": {
"name": "my-claude-sonnet-4-5",
"limit": {
"context": 200000,
"output": 64000
}
},
"claude-haiku-4-5-20251001": {
"name": "my-claude-haiku-4-5",
"limit": {
"context": 200000,
"output": 64000
}
}
}
},
"my-openai": {
"npm": "@ai-sdk/openai",
"name": "my - OpenAI",
"options": {
"baseURL": "https://llm-proxy.xx.com/aws",
"apiKey": "user-key-xxx"
},
"models": {
"gpt-5.2": {
"name": "my-gpt-5.2",
"options": {
"include": ["reasoning.encrypted_content"],
"store": false,
"reasoningEffort": "high",
"textVerbosity": "high",
"reasoningSummary": "auto"
},
"limit": {
"context": 200000,
"output": 64000
}
}
}
},
"my-google": {
"npm": "@ai-sdk/google",
"name": "my-Google",
"options": {
"baseURL": "https://llm-proxy.xx.com/google/v1beta",
"apiKey": "user-key-xxx"
},
"models": {
"gemini-3-pro-preview": {
"name": "my-Gemini-3-Pro",
"limit": {
"context": 200000,
"output": 64000
}
},
"gemini-3-flash-preview": {
"name": "my-Gemini-3-Flash",
"limit": {
"context": 200000,
"output": 64000
}
}
}
}
},
"plugin": ["oh-my-opencode"]
}
This is the available configuration for opencode, which is also very difficult to configure.
However, in the end, all three major types of models can run, and it supports custom names and npm. It is hoped that neovate can refer to this and provide support.
Alternatives
No response
Importance
i cannot use @neovate/code without it
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels