Description
Environment
- OpenCode Version: 1.2.21
- Operating System: Windows
- Provider: nvidia
- Model: qwen/qwen3.5-122b-a10b
Steps to Reproduce
- Configure opencode.json to use nvidia provider with qwen3.5-122b-a10b model
- Start opencode and try to interact with the model
- Error occurs: System message must be at the beginning
Workarounds Attempted
Added the following configuration in opencode.json:
{
"nvidia": {
"models": {
"qwen/qwen3.5-122b-a10b": {
"chat_template_kwargs": {
"enable_system_prompt": true
}
}
}
}
}
But the problem persists.
Expected Behavior
The model should be able to receive and process system prompts normally without returning an error.
Additional Information
- Error occurs every time (100% reproducibility)
- Other models (e.g., glm-4.7, doubao-seed-2.0-code) work fine with this provider
- Have not tried direct curl calls to nvidia API yet
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
Environment
Steps to Reproduce
Workarounds Attempted
Added the following configuration in opencode.json:
{
"nvidia": {
"models": {
"qwen/qwen3.5-122b-a10b": {
"chat_template_kwargs": {
"enable_system_prompt": true
}
}
}
}
}
But the problem persists.
Expected Behavior
The model should be able to receive and process system prompts normally without returning an error.
Additional Information
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response