Procházet zdrojové kódy

fix(docs): correct `format` attribute in `StructuredOutputs` (#13340)

Dylan Fiedler před 2 měsíci
rodič
revize
ecab692ca1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      packages/web/src/content/docs/sdk.mdx

+ 2 - 2
packages/web/src/content/docs/sdk.mdx

@@ -119,7 +119,7 @@ try {
 
 
 ## Structured Output
 ## 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
 ### Basic Usage
 
 
@@ -128,7 +128,7 @@ const result = await client.session.prompt({
   path: { id: sessionId },
   path: { id: sessionId },
   body: {
   body: {
     parts: [{ type: "text", text: "Research Anthropic and provide company info" }],
     parts: [{ type: "text", text: "Research Anthropic and provide company info" }],
-    outputFormat: {
+    format: {
       type: "json_schema",
       type: "json_schema",
       schema: {
       schema: {
         type: "object",
         type: "object",