mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
parent
664bce6182
commit
789d9713a0
5 changed files with 199 additions and 299 deletions
|
|
@ -33,7 +33,7 @@ def question(url, flow_id, question, user, collection, doc_limit, streaming=True
|
|||
|
||||
# Stream output
|
||||
for chunk in response:
|
||||
print(chunk.content, end="", flush=True)
|
||||
print(chunk, end="", flush=True)
|
||||
print() # Final newline
|
||||
|
||||
finally:
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ def question(
|
|||
|
||||
# Stream output
|
||||
for chunk in response:
|
||||
print(chunk.content, end="", flush=True)
|
||||
print(chunk, end="", flush=True)
|
||||
print() # Final newline
|
||||
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue