Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions application/api/answer/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@
source_log_docs = []
tool_calls = []
stream_ended = False
thought = ""

Check warning on line 614 in application/api/answer/routes.py

View check run for this annotation

Codecov / codecov/patch

application/api/answer/routes.py#L614

Added line #L614 was not covered by tests

for line in complete_stream(
question=question,
Expand All @@ -633,6 +634,8 @@
source_log_docs = event["source"]
elif event["type"] == "tool_calls":
tool_calls = event["tool_calls"]
elif event["type"] == "thought":
thought = event["thought"]

Check warning on line 638 in application/api/answer/routes.py

View check run for this annotation

Codecov / codecov/patch

application/api/answer/routes.py#L637-L638

Added lines #L637 - L638 were not covered by tests
elif event["type"] == "error":
logger.error(f"Error from stream: {event['error']}")
return bad_request(500, event["error"])
Expand Down Expand Up @@ -664,6 +667,7 @@
conversation_id,
question,
response_full,
thought,
source_log_docs,
tool_calls,
llm,
Expand Down