Skip to content

Model not returning the answers. #6223

Closed as not planned
Closed as not planned

Description

@Regboy744

Question

Description
When using qwen2.5-coder:14b with OpenCode, the model attempts to call tools (like todorantum) for simple conversational inputs instead of responding normally.
Steps to Reproduce

Set up OpenCode with Ollama provider
Use model: qwen2.5-coder:14b
Send a simple greeting: hi
Model responds with a tool call instead of a direct response

Expected Behavior
User: hi
Assistant: Hello! How can I help you today?
Actual Behavior
User: hi
Assistant: {
"name": "todorantum",
"arguments": {
"input": "hi"
}
}
Environment

Provider: Ollama
Model: qwen2.5-coder:14b
Ollama Version: 0.13.5
GPU: NVIDIA RTX 5070 Ti (16GB VRAM)
OS: Arch Linux

Model
architecture qwen2
parameters 14.8B
context length 32768
embedding length 5120
quantization Q4_K_M

Capabilities
completion
tools
insert

System
You are Qwen, created by Alibaba Cloud. You are a helpful assistant.

License
Apache License
Version 2.0, January 2004
...

"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (local)",
"options": {
"baseURL": "http://localhost:11434/v1"
},
"models": {
"qwen2.5-coder:14b": {
"name": "qwen2.5-coder:14b",
"tools": true,
"thinking": true,
}
},
}
}

Image

Activity

  1. github-actions commented on Dec 26, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if your specific case is different from these.

  2. changed the title [-]Model calling tools for simple greetings instead of responding directly[/-] [+]Model not returning the answers.[/+] on Dec 27, 2025
  3. rekram1-node commented on Dec 27, 2025

    @rekram1-node
    Contributor

    what is the num ctx u set for the model?

  4. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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