mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-23 04:26:05 +00:00
chore: generate
This commit is contained in:
parent
9db90a0b76
commit
8a55920531
2 changed files with 2 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue