-
Notifications
You must be signed in to change notification settings - Fork 340
Description
Describe the feature or improvement you are requesting
Update FunctionCallOutputResponseItem to include the output property as a string or array.
This would remove a bunch of hacks we need to do now to allow the Model to see files generated by tools.
The array of objects should allow the input text, input image, input file:
Input text - A text input to the model.
text:string - The text input to the model (Required)
type:string - The type of the input item. Always input_text (Required)
Input image - An image input to the model. Learn about image inputs
type:string - The type of the input item. Always input_image (Required)
detail:string - The detail level of the image to be sent to the model. One of high, low, or auto. Defaults to auto. (Optional)
file_id:string - The ID of the file to be sent to the model (Optional)
image_url:string - The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL (Optional)
Input file - A file input to the model.
type:string - The type of the input item. Always input_file (Required)
file_data:string - The base64-encoded data of the file to be sent to the model (Optional)
file_id:string - The ID of the file to be sent to the model (Optional)
file_url:string - The URL of the file to be sent to the model (Optional)
filename:string - The name of the file to be sent to the model (Optional)
Additional context
Original Post Announcing the feature:
https://x.com/OpenAIDevs/status/1971618905941856495
Documentation for the feature:
https://platform.openai.com/docs/api-reference/responses/create#responses-create-input-input-item-list-item-function-tool-call-output-output