Skip to content

addAssistantMessage method is missing #460

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

Open
ruofeilyu opened this issue Apr 30, 2025 · 3 comments
Open

addAssistantMessage method is missing #460

ruofeilyu opened this issue Apr 30, 2025 · 3 comments

Comments

@ruofeilyu
Copy link

Image
@TomerAberbach
Copy link
Collaborator

You can call addMessage with a ChatCompletionAssistantMessageParam

@kwhinnery-openai is it intentional that content on an assistant message is optional? That's the reason we don't generate addAssistantMessage here (we only generate such methods when there's a single required field)

@ruofeilyu
Copy link
Author

I also found the ChatCompletionAssistantMessageParam, yeah it works, but still feel it's weird that addAssistantMessage does not exist. Thanks

@ruofeilyu
Copy link
Author

Image

feel not very elegant.

@TomerAberbach TomerAberbach changed the title Do you miss the the addAssistantMessage here? addAssistantMessage method is missing Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants