chore: generate
This commit is contained in:
@@ -60,10 +60,7 @@ const OpenAIResponsesReasoningItem = Schema.Struct({
|
|||||||
// `function_call_output.output` accepts either a plain string or an ordered
|
// `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.
|
// array of content items so tools can return images in addition to text.
|
||||||
// https://platform.openai.com/docs/api-reference/responses/object
|
// https://platform.openai.com/docs/api-reference/responses/object
|
||||||
const OpenAIResponsesFunctionCallOutputContent = Schema.Union([
|
const OpenAIResponsesFunctionCallOutputContent = Schema.Union([OpenAIResponsesInputText, OpenAIResponsesInputImage])
|
||||||
OpenAIResponsesInputText,
|
|
||||||
OpenAIResponsesInputImage,
|
|
||||||
])
|
|
||||||
|
|
||||||
const OpenAIResponsesFunctionCallOutput = Schema.Union([
|
const OpenAIResponsesFunctionCallOutput = Schema.Union([
|
||||||
Schema.String,
|
Schema.String,
|
||||||
|
|||||||
@@ -333,9 +333,7 @@ const runImageToolResultScenario = (context: GoldenScenarioContext) =>
|
|||||||
generation: generation(context, context.maxTokens ?? 40),
|
generation: generation(context, context.maxTokens ?? 40),
|
||||||
messages: [
|
messages: [
|
||||||
Message.user("Use the read_screenshot tool, then reply with the words shown."),
|
Message.user("Use the read_screenshot tool, then reply with the words shown."),
|
||||||
Message.assistant([
|
Message.assistant([{ type: "tool-call", id: "call_screenshot_1", name: screenshotToolName, input: {} }]),
|
||||||
{ type: "tool-call", id: "call_screenshot_1", name: screenshotToolName, input: {} },
|
|
||||||
]),
|
|
||||||
Message.tool({
|
Message.tool({
|
||||||
id: "call_screenshot_1",
|
id: "call_screenshot_1",
|
||||||
name: screenshotToolName,
|
name: screenshotToolName,
|
||||||
|
|||||||
Reference in New Issue
Block a user