mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-10 14:28:57 +00:00
Sources message section integration
This commit is contained in:
parent
7c6437eef6
commit
2b647a9e7d
5 changed files with 195 additions and 8 deletions
|
@ -60,7 +60,7 @@ class StreamingService:
|
|||
self.message_annotations[1]["content"] = sources
|
||||
|
||||
# Return only the delta annotation
|
||||
annotation = {"type": "SOURCES", "content": sources}
|
||||
annotation = {"type": "SOURCES", "data": sources}
|
||||
return f"8:[{json.dumps(annotation)}]\n"
|
||||
|
||||
def format_answer_delta(self, answer_chunk: str) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue