mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 20:21:03 +02:00
Fix non-streaming failure in RAG services
This commit is contained in:
parent
30ca1d2e8b
commit
aacc96064f
2 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ class Processor(FlowProcessor):
|
||||||
await flow("response").send(
|
await flow("response").send(
|
||||||
DocumentRagResponse(
|
DocumentRagResponse(
|
||||||
response = response,
|
response = response,
|
||||||
|
end_of_stream = True,
|
||||||
error = None
|
error = None
|
||||||
),
|
),
|
||||||
properties = {"id": id}
|
properties = {"id": id}
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,7 @@ class Processor(FlowProcessor):
|
||||||
await flow("response").send(
|
await flow("response").send(
|
||||||
GraphRagResponse(
|
GraphRagResponse(
|
||||||
response = response,
|
response = response,
|
||||||
|
end_of_stream = True,
|
||||||
error = None
|
error = None
|
||||||
),
|
),
|
||||||
properties = {"id": id}
|
properties = {"id": id}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue