[GH-ISSUE #13206] Structured output request don't work in Cloud's Qwen3-coder #8729

Closed
opened 2026-04-12 21:29:58 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @pavelai on GitHub (Nov 22, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13206

What is the issue?

No structured output provided when using cloud models with format set. I'm using Qwen3 cloud model.

Request example:

{
  "messages": [
    {
      "role": "system",
      "content": "Read the conversation and return short summary."
    },
    {
      "role": "user",
      "content": "What is quantum physics"
    },
  ],
  "model": "qwen3-coder:480b-cloud",
  "options": {
    "temperature": 0.7
  },
  "format": {
    "type": "object",
    "properties": {
      "result": {
        "type": "string",
        "description": "Result of the query"
      }
    },
    "required": [
      "result"
    ],
    "additionalProperties": false,
    "$schema": "http://json-schema.org/draft-07/schema#"
  },
  "stream": false
}

Response:

{
  "model": "qwen3-coder:480b",
  "created_at": "2025-11-14T18:54:27.746233968Z",
  "message": {
    "role": "assistant",
    "content": "Quantum physics is the branch of physics that studies the behavior and interactions of matter and energy at the smallest scales - typically atoms, subatomic particles, and photons. It describes how these tiny particles behave in ways that are fundamentally different from our everyday experience, exhibiting both wave-like and particle-like properties, existing in multiple states simultaneously (superposition), and being instantaneously connected across distances (entanglement). Key principles include the uncertainty principle, wave-particle duality, and quantized energy levels. Quantum physics has led to technologies like lasers, computer chips, and MRI machines."
  },
  "done": true,
  "done_reason": "stop",
  "total_duration": 2984374561,
  "prompt_eval_count": 25,
  "eval_count": 117
}

Here the model response is a message with raw text not a JSON

  • Ollama js package version is v0.6.3
  • Cloud model Qwen3:480b-cloud
  • Requests made in different JS environments

Note This issue was initially filed into wrong repository github.com/ollama/ollama-js as ollama/ollama-js#264.

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

cloud

Originally created by @pavelai on GitHub (Nov 22, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13206 ### What is the issue? No structured output provided when using cloud models with format set. I'm using Qwen3 cloud model. Request example: ```json { "messages": [ { "role": "system", "content": "Read the conversation and return short summary." }, { "role": "user", "content": "What is quantum physics" }, ], "model": "qwen3-coder:480b-cloud", "options": { "temperature": 0.7 }, "format": { "type": "object", "properties": { "result": { "type": "string", "description": "Result of the query" } }, "required": [ "result" ], "additionalProperties": false, "$schema": "http://json-schema.org/draft-07/schema#" }, "stream": false } ``` Response: ```json { "model": "qwen3-coder:480b", "created_at": "2025-11-14T18:54:27.746233968Z", "message": { "role": "assistant", "content": "Quantum physics is the branch of physics that studies the behavior and interactions of matter and energy at the smallest scales - typically atoms, subatomic particles, and photons. It describes how these tiny particles behave in ways that are fundamentally different from our everyday experience, exhibiting both wave-like and particle-like properties, existing in multiple states simultaneously (superposition), and being instantaneously connected across distances (entanglement). Key principles include the uncertainty principle, wave-particle duality, and quantized energy levels. Quantum physics has led to technologies like lasers, computer chips, and MRI machines." }, "done": true, "done_reason": "stop", "total_duration": 2984374561, "prompt_eval_count": 25, "eval_count": 117 } ``` Here the model response is a message with raw text not a JSON * Ollama js package version is `v0.6.3` * Cloud model `Qwen3:480b-cloud` * Requests made in different JS environments *Note* This issue was initially filed into wrong repository github.com/ollama/ollama-js as [ollama/ollama-js#264](https://github.com/ollama/ollama-js/issues/264). ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version cloud
GiteaMirror added the bug label 2026-04-12 21:29:58 -05:00
Author
Owner

@rick-github commented on GitHub (Nov 22, 2025):

https://github.com/ollama/ollama/issues/12362

<!-- gh-comment-id:3566760358 --> @rick-github commented on GitHub (Nov 22, 2025): https://github.com/ollama/ollama/issues/12362
Author
Owner

@pavelai commented on GitHub (Nov 22, 2025):

@rick-github I've seen that issue, and it seems like it wasn't properly filed and it wasn't clear is it about the cloud version of Ollama itself or about jsonschema, so it requires some reading in user comments to get to the issue. Anyway. Should I close this one?

<!-- gh-comment-id:3566971531 --> @pavelai commented on GitHub (Nov 22, 2025): @rick-github I've seen that issue, and it seems like it wasn't properly filed and it wasn't clear is it about the cloud version of Ollama itself or about jsonschema, so it requires some reading in user comments to get to the issue. Anyway. Should I close this one?
Author
Owner

@noura3368 commented on GitHub (Nov 28, 2025):

I have this issue as well.

<!-- gh-comment-id:3590321651 --> @noura3368 commented on GitHub (Nov 28, 2025): I have this issue as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#8729