cloudaxe-opencode/packages/opencode
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
..
bin
script try uploading artifacts in workflow 2025-12-22 17:08:44 +08:00
src fix: force tool calls when outputFormat is json_schema 2026-01-12 23:05:43 -08:00
test fix: structured output loop exit and add system prompt 2026-01-12 20:51:17 -08:00
.gitignore
AGENTS.md
bunfig.toml
Dockerfile add ARM64 Docker image support (#5483) 2025-12-13 13:01:59 -06:00
package.json release: v1.0.193 2025-12-23 15:16:20 +00:00
parsers-config.ts
README.md
sst-env.d.ts wip: zen 2025-12-02 18:36:15 -05:00
tsconfig.json

js

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.