cohere-python
cohere-python copied to clipboard
Different message validation for Stream=True and Stream=False
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