Skip to content

weird behavior on devstral-small #389

Closed as not planned
Closed as not planned

Description

@bernardolsp

hey! opencode is awesome and works very much well with sonnet.

I have been trying devstral on roocode (via openrouter) and that seems to behave pretty well - i.e, performing agentic (and function calling) very, very well:

Image

With the same question on Roo Code and in OpenCode, I get very different results:

Image (notice it keeps going and vibe coding its way to the task) Image

On the other hand, the same prompt to OpenCode generated this https://opencode.ai/s/J1nnnktj - pretty much not calling the functions.

I know most of these tools are more optimized for Claude - though, if this makes sense, I would think that opencode is specially interesting for allowing the usage of other models here to perform in similar scenarios.
am I just bad at prompting, or would this technically require more prompt finagling?

For what is worth, this is my global config:

➜  test-roocode-devstral cat ~/.config/opencode/config.json                                                                               (⎈|omni-Production:default)
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "openrouter": {
      "npm": "@openrouter/ai-sdk-provider",
      "name": "OpenRouter",
      "options": {},
      "models": {
        "mistralai/devstral-small": {
          "name": "Devstral Small",
	  "limit": { "context": 131072, "output": 1000000 }
        },
	"deepseek/deepseek-chat-v3-0324": {
	  "name": "DeepSeek V3"
	},
	"openai/o3-mini-high": {}
      }
    }
  }
}

I have tried messing with the context/output limits, but seemingly that went nowhere.

thank you!

Activity

  1. bernardolsp commented on Jun 25, 2025

    @bernardolsp
    Author

    I have removed the limits (in the json config) to avoid any issue - this is what I got https://opencode.ai/s/hBysNy7f

    this is mac os, iterm2, latest version of opencode (that was released yesterday)

    (fwiw, I understand that roocode and opencode do several different things - effectively grepping vs using LSPs, etc. - I am not comparing the final outcome or characteristics of the two different tools - rather trying to understand why it completely failed to actually call functions on opencode)

  2. self-assigned this
    on Jun 25, 2025
  3. thdxr commented on Jun 25, 2025

    @thdxr
    Member

    can you ask it "what tools do you have?"

  4. bernardolsp commented on Jun 25, 2025

    @bernardolsp
    Author

    hey, there you go:

    Image
  5. bernardolsp commented on Jun 25, 2025

    @bernardolsp
    Author

    this might be relevant:

    https://opencode.ai/s/ykg1N5tS

    which triggered an error (btw, copying stuff in the TUI would be awesome):

    Image
  6. added a commit that references this issue on Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions