opencode agent create Unsupported model version v3 for provider "mistral.chat" #3758

Closed
opened 2026-02-16 17:41:22 -05:00 by yindo · 5 comments
Owner

Originally created by @gasatrya on GitHub (Dec 22, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

I get this error:

LLM failed to generate agent: Unsupported model version v3 for provider "mistral.chat" and model "pixtral-large-latest". AI SDK 5 only supports models that implement specification version "v2".

OpenCode version

1.0.186

Steps to reproduce

  1. Run opencode agent create
  2. Add description

Screenshot and/or share link

Image

Operating System

WSL 2

Terminal

Windows Terminal

Originally created by @gasatrya on GitHub (Dec 22, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description I get this error: ` LLM failed to generate agent: Unsupported model version v3 for provider "mistral.chat" and model "pixtral-large-latest". AI SDK 5 only supports models that implement specification version "v2". ` ### OpenCode version 1.0.186 ### Steps to reproduce 1. Run `opencode agent create` 2. Add description ### Screenshot and/or share link <img width="1882" height="84" alt="Image" src="https://github.com/user-attachments/assets/f2ed617e-8325-4d2f-ae2a-689b6a03decc" /> ### Operating System WSL 2 ### Terminal Windows Terminal
yindo added the windowsbug labels 2026-02-16 17:41:22 -05:00
yindo closed this issue 2026-02-16 17:41:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 22, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #5566: Error saying The requested model is not supported. when trying to create new agent
  • #3956: Agent creation flow is failing

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 22, 2025): This issue might be a duplicate of existing issues. Please check: - #5566: Error saying The requested model is not supported. when trying to create new agent - #3956: Agent creation flow is failing Feel free to ignore if none of these address your specific case.
Author
Owner

@gasatrya commented on GitHub (Dec 22, 2025):

➜  agent opencode agent create --print-logs
INFO  2025-12-22T17:33:55 +299ms service=default version=1.0.186 args=["agent","create","--print-logs"] opencode
INFO  2025-12-22T17:33:55 +0ms service=default directory=/home/satrya/.config/opencode/agent creating instance
INFO  2025-12-22T17:33:55 +1ms service=project directory=/home/satrya/.config/opencode/agent fromDirectory

┌  Create agent
│
◇  Description
│  QA agent
│
INFO  2025-12-22T17:35:02 +66608ms service=config path=/home/satrya/.config/opencode/config.json loading
INFO  2025-12-22T17:35:02 +1ms service=config path=/home/satrya/.config/opencode/opencode.json loading
INFO  2025-12-22T17:35:02 +11ms service=config path=/home/satrya/.config/opencode/opencode.jsonc loading
INFO  2025-12-22T17:35:02 +11ms service=config path=/home/satrya/.config/opencode/opencode.json loading
INFO  2025-12-22T17:35:02 +6ms service=bun cmd=["/home/satrya/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.186","--exact"] cwd=/home/satrya/.config/opencode running
INFO  2025-12-22T17:35:02 +28ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.0.186

[16.00ms] done
 stderr=Saved lockfile
 done
◒  Generating agent configurationINFO  2025-12-22T17:35:02 +27ms service=config path=/home/satrya/.opencode/opencode.jsonc loading
INFO  2025-12-22T17:35:02 +0ms service=config path=/home/satrya/.opencode/opencode.json loading
INFO  2025-12-22T17:35:02 +1ms service=bun cmd=["/home/satrya/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.186","--exact"] cwd=/home/satrya/.opencode running
INFO  2025-12-22T17:35:02 +10ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.0.186

[4.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-12-22T17:35:02 +10ms service=provider status=started state
INFO  2025-12-22T17:35:02 +2ms service=models.dev file={} refreshing
INFO  2025-12-22T17:35:02 +18ms service=provider init
INFO  2025-12-22T17:35:02 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
INFO  2025-12-22T17:35:02 +15ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin
◐  Generating agent configurationINFO  2025-12-22T17:35:02 +107ms service=provider providerID=mistral found
INFO  2025-12-22T17:35:02 +0ms service=provider providerID=deepseek found
INFO  2025-12-22T17:35:02 +0ms service=provider providerID=openrouter found
INFO  2025-12-22T17:35:02 +0ms service=provider providerID=zai-coding-plan found
INFO  2025-12-22T17:35:02 +0ms service=provider providerID=opencode found
INFO  2025-12-22T17:35:02 +0ms service=provider status=completed duration=144 state
INFO  2025-12-22T17:35:02 +3ms service=provider status=started providerID=mistral getSDK
INFO  2025-12-22T17:35:02 +0ms service=bun pkg=@ai-sdk/mistral version=latest installing package using Bun's default registry resolution
INFO  2025-12-22T17:35:02 +0ms service=bun cmd=["/home/satrya/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/satrya/.cache/opencode","@ai-sdk/mistral@latest"] cwd=/home/satrya/.cache/opencode running
◐  Generating agent configuration.INFO  2025-12-22T17:35:03 +1032ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

+ opencode-anthropic-auth@0.0.5
+ opencode-copilot-auth@0.0.9

installed @ai-sdk/mistral@3.0.0

21 packages installed [1026.00ms]
 stderr=Resolving dependencies
Resolved, downloaded and extracted [1]
Saved lockfile
 done
INFO  2025-12-22T17:35:03 +162ms service=provider status=completed duration=1194 providerID=mistral getSDK
■  LLM failed to generate agent: Unsupported model version v3 for provider "mistral.chat" and model "pixtral-large-latest". AI SDK 5 only supports models that implement specification version "v2".
ERROR 2025-12-22T17:35:03 +80ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError
    at <anonymous> (src/cli/cmd/agent.ts:127:17)
    at processTicksAndRejections (native:7:39) fatal
@gasatrya commented on GitHub (Dec 22, 2025): ```sh ➜ agent opencode agent create --print-logs INFO 2025-12-22T17:33:55 +299ms service=default version=1.0.186 args=["agent","create","--print-logs"] opencode INFO 2025-12-22T17:33:55 +0ms service=default directory=/home/satrya/.config/opencode/agent creating instance INFO 2025-12-22T17:33:55 +1ms service=project directory=/home/satrya/.config/opencode/agent fromDirectory ┌ Create agent │ ◇ Description │ QA agent │ INFO 2025-12-22T17:35:02 +66608ms service=config path=/home/satrya/.config/opencode/config.json loading INFO 2025-12-22T17:35:02 +1ms service=config path=/home/satrya/.config/opencode/opencode.json loading INFO 2025-12-22T17:35:02 +11ms service=config path=/home/satrya/.config/opencode/opencode.jsonc loading INFO 2025-12-22T17:35:02 +11ms service=config path=/home/satrya/.config/opencode/opencode.json loading INFO 2025-12-22T17:35:02 +6ms service=bun cmd=["/home/satrya/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.186","--exact"] cwd=/home/satrya/.config/opencode running INFO 2025-12-22T17:35:02 +28ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.0.186 [16.00ms] done stderr=Saved lockfile done ◒ Generating agent configurationINFO 2025-12-22T17:35:02 +27ms service=config path=/home/satrya/.opencode/opencode.jsonc loading INFO 2025-12-22T17:35:02 +0ms service=config path=/home/satrya/.opencode/opencode.json loading INFO 2025-12-22T17:35:02 +1ms service=bun cmd=["/home/satrya/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.186","--exact"] cwd=/home/satrya/.opencode running INFO 2025-12-22T17:35:02 +10ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.0.186 [4.00ms] done stderr=Saved lockfile done INFO 2025-12-22T17:35:02 +10ms service=provider status=started state INFO 2025-12-22T17:35:02 +2ms service=models.dev file={} refreshing INFO 2025-12-22T17:35:02 +18ms service=provider init INFO 2025-12-22T17:35:02 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin INFO 2025-12-22T17:35:02 +15ms service=plugin path=opencode-anthropic-auth@0.0.5 loading plugin ◐ Generating agent configurationINFO 2025-12-22T17:35:02 +107ms service=provider providerID=mistral found INFO 2025-12-22T17:35:02 +0ms service=provider providerID=deepseek found INFO 2025-12-22T17:35:02 +0ms service=provider providerID=openrouter found INFO 2025-12-22T17:35:02 +0ms service=provider providerID=zai-coding-plan found INFO 2025-12-22T17:35:02 +0ms service=provider providerID=opencode found INFO 2025-12-22T17:35:02 +0ms service=provider status=completed duration=144 state INFO 2025-12-22T17:35:02 +3ms service=provider status=started providerID=mistral getSDK INFO 2025-12-22T17:35:02 +0ms service=bun pkg=@ai-sdk/mistral version=latest installing package using Bun's default registry resolution INFO 2025-12-22T17:35:02 +0ms service=bun cmd=["/home/satrya/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/satrya/.cache/opencode","@ai-sdk/mistral@latest"] cwd=/home/satrya/.cache/opencode running ◐ Generating agent configuration.INFO 2025-12-22T17:35:03 +1032ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) + opencode-anthropic-auth@0.0.5 + opencode-copilot-auth@0.0.9 installed @ai-sdk/mistral@3.0.0 21 packages installed [1026.00ms] stderr=Resolving dependencies Resolved, downloaded and extracted [1] Saved lockfile done INFO 2025-12-22T17:35:03 +162ms service=provider status=completed duration=1194 providerID=mistral getSDK ■ LLM failed to generate agent: Unsupported model version v3 for provider "mistral.chat" and model "pixtral-large-latest". AI SDK 5 only supports models that implement specification version "v2". ERROR 2025-12-22T17:35:03 +80ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError at <anonymous> (src/cli/cmd/agent.ts:127:17) at processTicksAndRejections (native:7:39) fatal ```
Author
Owner

@rekram1-node commented on GitHub (Dec 22, 2025):

use the --model flag to get around this for time being

@rekram1-node commented on GitHub (Dec 22, 2025): use the `--model` flag to get around this for time being
Author
Owner

@rekram1-node commented on GitHub (Dec 22, 2025):

Also try upgrading... I think this was just fixed

@rekram1-node commented on GitHub (Dec 22, 2025): Also try upgrading... I think this was just fixed
Author
Owner

@gasatrya commented on GitHub (Dec 22, 2025):

Yes it was fixed. Thanks!

@gasatrya commented on GitHub (Dec 22, 2025): Yes it was fixed. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3758