mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Do not stream responses in the scheduled_chat response
This commit is contained in:
parent
5132b01ab1
commit
5bb3689562
1 changed files with 3 additions and 0 deletions
|
@ -972,6 +972,9 @@ def scheduled_chat(
|
||||||
scheme = "http" if not calling_url.is_secure else "https"
|
scheme = "http" if not calling_url.is_secure else "https"
|
||||||
query_dict = parse_qs(calling_url.query)
|
query_dict = parse_qs(calling_url.query)
|
||||||
|
|
||||||
|
# Pop the stream value from query_dict if it exists
|
||||||
|
query_dict.pop("stream", None)
|
||||||
|
|
||||||
# Replace the original scheduling query with the scheduled query
|
# Replace the original scheduling query with the scheduled query
|
||||||
query_dict["q"] = [query_to_run]
|
query_dict["q"] = [query_to_run]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue