opencode/packages
Kyle Mistele 0e8f7694ed fix: force tool calls when outputFormat is json_schema
When structured output is requested, the model must call the
StructuredOutput tool instead of responding with plain text.

Changes:
- Add toolChoice parameter to LLM.StreamInput
- Pass toolChoice: "required" to streamText when outputFormat is json_schema
- This forces the model to call a tool, ensuring structured output is captured
2026-01-12 23:05:43 -08:00
..
app release: v1.0.193 2025-12-23 15:16:20 +00:00
console zen: sync 2025-12-23 20:36:55 -05:00
desktop release: v1.0.193 2025-12-23 15:16:20 +00:00
docs ci 2025-12-07 21:51:22 -05:00
enterprise zen: sync 2025-12-23 20:36:55 -05:00
extensions/zed release: v1.0.193 2025-12-23 15:16:20 +00:00
function zen: sync 2025-12-23 20:36:55 -05:00
identity chore: identity cleanup, vscode ext images 2025-12-08 06:47:57 -06:00
opencode fix: force tool calls when outputFormat is json_schema 2026-01-12 23:05:43 -08:00
plugin chore: generate 2025-12-23 15:39:47 +00:00
script ci 2025-12-10 02:57:39 +00:00
sdk chore: regenerate JavaScript SDK with structured output types 2026-01-12 20:18:50 -08:00
slack release: v1.0.193 2025-12-23 15:16:20 +00:00
ui "Did you know?" start screen tips (#5982) 2025-12-23 13:28:33 -06:00
util release: v1.0.193 2025-12-23 15:16:20 +00:00
web docs: add structured output documentation to SDK reference 2026-01-12 21:04:13 -08:00