ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

Fix session.ask return generator bug when stream=False on python sdk

Open Vela-zz opened this issue 1 week ago • 0 comments

add non-stream mode support to session.ask function

What problem does this PR solve?

same as title, I do not know why the stream=False is not work on the server side also, when stream=False, the response in the session._ask_chat is a fully connnected SSE string.

This is a quick fix on the sdk side to make the response format align with API docs

Type of change

  • [x] Bug Fix (non-breaking change which fixes an issue)

Vela-zz avatar Feb 20 '25 18:02 Vela-zz