Fix API tests (#581)

* Fix RAG streaming CLIs

* Fixed, all tests pass
This commit is contained in:
cybermaggedon 2025-12-04 21:11:56 +00:00 committed by GitHub
parent 664bce6182
commit 789d9713a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 199 additions and 299 deletions

View file

@ -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:

View file

@ -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: