Skip to content

AI_APICallError: "stream=true" with structured outputs is currently not supported for reasoning models. #992

Closed

Description

@deadcoder0904

I got this error while trying to use Cerebras with qwen-3-235b-a22b. Not sure what the error is about.

My opencode.json:

{
	"$schema": "https://opencode.ai/config.json",
	"autoupdate": true,
	"model": "cerebras/qwen-3-235b-a22b",
	"provider": {
		"cerebras": {
			"npm": "@ai-sdk/cerebras",
			"name": "Cerebras",
			"options": {
				"baseUrl": "https://api.cerebras.ai/v1",
				"apiKey": "csk-*****"
			},
			"models": {
				"qwen-3-235b-a22b": {
					"name": "Qwen-3-235b-a22b"
				},
				"qwen-3-32b": {
					"name": "Qwen-3-32b"
				},
				"llama3.1-8b": {
					"name": "Llama3.1-8b"
				},
				"llama-3.3-70b": {
					"name": "Llama-3.3-70b"
				},
				"deepseek-r1-distill-llama-70b": {
					"name": "Deepseek-r1-distill-llama-70b"
				},
				"llama-4-scout-17b-16e-instruct": {
					"name": "Llama-4-scout-17b-16e-instruct"
				}
			}
		},
		"lmstudio": {
			"npm": "@ai-sdk/openai-compatible",
			"name": "LM Studio (local)",
			"options": {
				"baseURL": "http://127.0.0.1:1234/v1"
			},
			"models": {
				"google/gemma-3n-e4b": {
					"name": "Gemma 3n-e4b (local)"
				}
			}
		},
		"kimi": {
			"npm": "@openrouter/ai-sdk-provider",
			"name": "Kimi",
			"models": {
				"moonshotai/kimi-k2": {
					"name": "Kimi K2"
				},
				"moonshotai/kimi-k2:free": {
					"name": "Kimi K2 (free)"
				},
				"moonshotai/kimi-dev-72b:free": {
					"name": "Kimi Dev 72b (free)"
				},
				"moonshotai/kimi-vl-a3b-thinking:free": {
					"name": "Kimi VL A3b Thinking (free)"
				}
			}
		}
	}
}

Activity

  1. self-assigned this
    on Jul 16, 2025
  2. Explosion-Scratch commented on Jul 23, 2025

    @Explosion-Scratch

    Also happening to me. Any news on this?

  3. aziham commented on Nov 9, 2025

    @aziham

    same +1

  4. 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