Skip to content

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

Closed

Description

@gasatrya

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

Activity

  1. github-actions commented on Dec 22, 2025

    @github-actions
    Contributor

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

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

  2. gasatrya commented on Dec 22, 2025

    @gasatrya
    Author
    ➜  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
  3. changed the title [-]`opencode agent create` Unsupported model version v3 for provider[/-] [+]`opencode agent create` Unsupported model version v3 for provider "mistral.chat"[/+] on Dec 22, 2025
  4. rekram1-node commented on Dec 22, 2025

    @rekram1-node
    Contributor

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

  5. rekram1-node commented on Dec 22, 2025

    @rekram1-node
    Contributor

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

  6. gasatrya commented on Dec 23, 2025

    @gasatrya
    Author

    Yes it was fixed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions