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

Different message validation for Stream=True and Stream=False #423

Closed
ysolanky opened this issue Mar 21, 2024 · 1 comment
Closed

Different message validation for Stream=True and Stream=False #423

ysolanky opened this issue Mar 21, 2024 · 1 comment
Assignees

Comments

@ysolanky
Copy link

When using the Stream = True parameter in cohere.chat and passing an empty message " " with a tool call result, I get no errors rather just a response 400 from the API. With Stream = False, I get a perfectly good response.

Wondering if there is different validation for Stream? The parameters being sent to cohere.chat are identical in both cases. Parameters that I am sending are: preamble, chat_history, tools, tool_results, messages, model

@billytrend-cohere
Copy link
Collaborator

@ysolanky sorry for the delay. I can't repro this now in the latest sdk, please reopen if this is an ongoing issue!

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