You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows 11
VSCode 1.104.0
Everything configured as the extension page in the Ollama section
Please tell us if you have customized any of the extension settings or whether you are using the defaults.
Hello! Do you have a suggestion about the error: "Error: AI_UnsupportedModelVersionError: Unsupported model version v1 for provider "ollama.chat" and model "qwen2.5:latest". AI SDK 5 only supports models that implement specification version "v2"." I tried with different models including qwen2.5 that is described in the ChatGPT connection instructions and just give me the error sent
Using ollama 0.12.6 on arch linux, with vscodium 1.105.16954 and version 4.10.0 of the extension.
The full error is:
Error: AI_UnsupportedModelVersionError: Unsupported model version v1 for provider "ollama.chat" and model "qwen2.5". AI SDK 5 only supports models that implement specification version "v2".
and changing the model to anything other than qwen2.5 changes that part but the v1 vs v2 issue I do not understand.
Running ollama list works fine, and I have verified this:
$ curl http://127.0.0.1:11434/
Ollama is running
Issue persists with tools: false and without reasoning flag
Issue affects both Plan and Build modes
Other CLI tools (e.g., XandAI-CLI, aider) work correctly with the same Ollama setup
Likely Cause
The AI SDK appears to be formatting message content as a multimodal array format, but sending empty content. The model
receives something like:
{"role": "user", "content"
Activity
Marcool04 commentedon Oct 23, 2025
I have a similar issue.
Using ollama 0.12.6 on arch linux, with vscodium 1.105.16954 and version 4.10.0 of the extension.
The full error is:
and changing the model to anything other than
qwen2.5changes that part but the v1 vs v2 issue I do not understand.Running
ollama listworks fine, and I have verified this:Marcool04 commentedon Oct 24, 2025
Googling around, and looking into this further, it seems to be related to incompatibilities with AI SKD 5:
see sgomez/ollama-ai-provider#47
Whereas the extension currently has
ollama-ai-provideras a dep:chatgpt-copilot/package.json
Line 750 in e9bedf8
rather than:
https://github.com/nordwestt/ollama-ai-provider-v2
Marcool04 commentedon Oct 24, 2025
I have submitted #628 to fix this.
minger0 commentedon Dec 13, 2025
reproduced on
@feiskyer does this mean that local server is currently not supported?
Marcool04 commentedon Dec 13, 2025
I can confirm that with this included: #628 I have been running the local server for a little while now and have had no trouble there
minger0 commentedon Dec 15, 2025
#628 worked for me.
charleshugie1988svg commentedon Dec 16, 2025
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (Docker)",
"options": {
"baseURL": "http://localhost:11434/v1"
},
"models": {
"qwen2.5-coder:14b": {
"name": "Qwen 2.5 Coder 14B",
"tools": true
}
}
}
},
"model": "ollama/qwen2.5-coder:14b"
}
Steps to Reproduce
Expected Behavior
Model responds to the user's question about pandas.
Actual Behavior
Model responds with one of:
Example response:
Got it. I'm in read-only plan mode. I'll analyze the user's request...
Hello! I notice you've provided an empty array as your input.
Verification
curl http://localhost:11434/v1/chat/completions -d '{
"model": "qwen2.5-coder:14b",
"messages": [{"role": "user", "content": "Hello"}]
}'
Returns proper response
Likely Cause
The AI SDK appears to be formatting message content as a multimodal array format, but sending empty content. The model
receives something like:
{"role": "user", "content"
feiskyer commentedon Dec 16, 2025
Thanks for the fixes. Published a new version (v4.10.2), let me know if there are still any issues
Marcool04 commentedon Dec 16, 2025
Tested and working on my end. Thanks for the merge 👍️