Browse Source

chore: generate

opencode-agent[bot] 3 tháng trước cách đây
mục cha
commit
8a55920531

+ 1 - 4
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,

+ 1 - 3
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,