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

[JS] chat.send({messages}) should append, not replace #1652

Open
mbleigh opened this issue Jan 24, 2025 · 1 comment
Open

[JS] chat.send({messages}) should append, not replace #1652

mbleigh opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working js

Comments

@mbleigh
Copy link
Collaborator

mbleigh commented Jan 24, 2025

To Reproduce

ai.chat({
  messages: [{role: "system", content: [{text: "System Message"]}],
}).send({
  messages: [{role: "user", content: [{text: "User Message"}]}]
}),

Expected behavior
LLM receives both messages.

Actual Behavior
LLM receives only user message.

@mbleigh mbleigh added bug Something isn't working js labels Jan 24, 2025
@chrisraygill
Copy link
Contributor

@pavelgj looks like this should go into 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working js
Projects
Status: No status
Development

No branches or pull requests

2 participants