AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

enhancement: update streaming code to follow `EventSource` protocol

Open ajndkr opened this issue 1 year ago • 1 comments

⚠️ Please check that this feature request hasn't been suggested before.

  • [X] I searched previous Ideas in Discussions didn't find any similar feature requests.
  • [X] I searched previous Issues didn't find any similar feature requests.

🔖 Feature description

The project uses lanarky for langchain streaming. After v0.8,

  • EventSource protocol is enforced for server-sent events
  • StreamingResponse for langchain objects has been refactored

Related documentation: https://lanarky.ajndkr.com/learn/adapters/langchain/fastapi/#streaming

✔️ Solution

As the author of lanarky, I would love to assist here. I can handle the python side but someone else needs to take over the client side changes.

❓ Alternatives

No response

📝 Additional Context

No response

Acknowledgements

  • [X] My issue title is concise, descriptive, and in title casing.
  • [X] I have searched the existing issues to make sure this feature has not been requested yet.
  • [X] I have provided enough information for the maintainers to understand and evaluate this request.

ajndkr avatar Nov 30 '23 03:11 ajndkr

cc @awtkns

ajndkr avatar Nov 30 '23 03:11 ajndkr