Skip to content

🐛 [Lang] Cohere: Streaming Workflow is not working #200

Closed
@roma-glushko

Description

@roma-glushko

I have tried to test Cohere streaming workflow and faced error like:
Screenshot 2024-04-11 at 22 12 12

After looking into Cohere documentation and some other LLM clients out there, it seems like Cohere is not using SSE protocol to stream chat chunks, they send serialised JSON chunks per stream line:

https://github.com/BerriAI/litellm/blob/main/litellm/llms/cohere.py#L178-L191

We need to fix this issue to make the stream workflow working.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions