-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Confirm this is a Node library issue and not an underlying OpenAI API issue
- This is an issue with the Node libraryTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Describe the bug
I'm getting linter errors when using openai.responses.create()
because ResponseInputMessageItem
wants an id
property. This property is not mentioned anywhere in the documentation, however. I guess it can be safely omitted but the type definitions should probably be updated accordingly.
To Reproduce
const input = [
{
role: 'user',
content: [
{ type: 'input_text', text: prompt },
...referenceImages.map((buffer) => ({
type: 'input_image',
detail: 'auto',
image_url: `data:image/png;base64,${buffer.toString('base64')}`,
})),
],
},
];
return openai.responses.create({
model: 'gpt-4-vision-preview',
input,
stream: true,
});
Code snippets
OS
macOS
Node version
v23.9.0
Library version
5.1.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity