Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect content param type in ChatCompletionAssistantMessageParam #820

Open
1 task done
maxpain opened this issue May 4, 2024 · 0 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@maxpain
Copy link

maxpain commented May 4, 2024

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

Currently only ChatCompletionUserMessageParam has content: string | Array<ChatCompletionContentPart>, but GPT-4 vision model allows passing images for assistant and system roles.

We need to make the same content type for ChatCompletionAssistantMessageParam and ChatCompletionSystemMessageParam

OS

macOS

Node version

Node v22.0.0

Library version

4.40.2

@maxpain maxpain added the bug Something isn't working label May 4, 2024
@maxpain maxpain changed the title Incorrect content param type in ChatCompletionToolMessageParam Incorrect content param type in ChatCompletionAssistantMessageParam May 4, 2024
@nknj nknj assigned owencm and unassigned nknj May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants