From 8a5592053144aaad4d8804382644ac0312b5e6dd Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Fri, 22 May 2026 16:25:15 +0000 Subject: [PATCH] chore: generate --- packages/llm/src/protocols/openai-responses.ts | 5 +---- packages/llm/test/recorded-scenarios.ts | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/llm/src/protocols/openai-responses.ts b/packages/llm/src/protocols/openai-responses.ts index 31d4a471f4..300f3f19ee 100644 --- a/packages/llm/src/protocols/openai-responses.ts +++ b/packages/llm/src/protocols/openai-responses.ts @@ -60,10 +60,7 @@ const OpenAIResponsesReasoningItem = Schema.Struct({ // `function_call_output.output` accepts either a plain string or an ordered // array of content items so tools can return images in addition to text. // https://platform.openai.com/docs/api-reference/responses/object -const OpenAIResponsesFunctionCallOutputContent = Schema.Union([ - OpenAIResponsesInputText, - OpenAIResponsesInputImage, -]) +const OpenAIResponsesFunctionCallOutputContent = Schema.Union([OpenAIResponsesInputText, OpenAIResponsesInputImage]) const OpenAIResponsesFunctionCallOutput = Schema.Union([ Schema.String, diff --git a/packages/llm/test/recorded-scenarios.ts b/packages/llm/test/recorded-scenarios.ts index 294bd822a8..eca97ee655 100644 --- a/packages/llm/test/recorded-scenarios.ts +++ b/packages/llm/test/recorded-scenarios.ts @@ -333,9 +333,7 @@ const runImageToolResultScenario = (context: GoldenScenarioContext) => generation: generation(context, context.maxTokens ?? 40), messages: [ Message.user("Use the read_screenshot tool, then reply with the words shown."), - Message.assistant([ - { type: "tool-call", id: "call_screenshot_1", name: screenshotToolName, input: {} }, - ]), + Message.assistant([{ type: "tool-call", id: "call_screenshot_1", name: screenshotToolName, input: {} }]), Message.tool({ id: "call_screenshot_1", name: screenshotToolName,