cohere-python icon indicating copy to clipboard operation
cohere-python copied to clipboard

Different message validation for Stream=True and Stream=False

Open ysolanky opened this issue 1 year ago • 0 comments

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

ysolanky avatar Mar 21 '24 16:03 ysolanky