summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorDylan Fiedler <[email protected]>2026-02-12 10:55:43 -0600
committerGitHub <[email protected]>2026-02-12 10:55:43 -0600
commitecab692ca15dceb065463731adfdee45ea91c49a (patch)
treea1e53791fd8a3d5cbf097f63eb5d4afdf85cfebb /packages
parent59a323e9a87d315ff5c0e73c4eb5af089aeff87f (diff)
downloadopencode-ecab692ca15dceb065463731adfdee45ea91c49a.tar.gz
opencode-ecab692ca15dceb065463731adfdee45ea91c49a.zip
fix(docs): correct `format` attribute in `StructuredOutputs` (#13340)
Diffstat (limited to 'packages')
-rw-r--r--packages/web/src/content/docs/sdk.mdx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/sdk.mdx b/packages/web/src/content/docs/sdk.mdx
index 4462d3440..24546213b 100644
--- a/packages/web/src/content/docs/sdk.mdx
+++ b/packages/web/src/content/docs/sdk.mdx
@@ -119,7 +119,7 @@ try {
## Structured Output
-You can request structured JSON output from the model by specifying an `outputFormat` with a JSON schema. The model will use a `StructuredOutput` tool to return validated JSON matching your schema.
+You can request structured JSON output from the model by specifying an `format` with a JSON schema. The model will use a `StructuredOutput` tool to return validated JSON matching your schema.
### Basic Usage
@@ -128,7 +128,7 @@ const result = await client.session.prompt({
path: { id: sessionId },
body: {
parts: [{ type: "text", text: "Research Anthropic and provide company info" }],
- outputFormat: {
+ format: {
type: "json_schema",
schema: {
type: "object",