Spaces:
Sleeping
Sleeping
Update routes/llm.py
Browse files- routes/llm.py +1 -1
routes/llm.py
CHANGED
@@ -136,7 +136,7 @@ async def sse_generator(request: ChatRequest, llm_api: DeepInfraApi, system_prom
|
|
136 |
role=msg.role,
|
137 |
content=msg.content,
|
138 |
reasoning=msg.reasoning,
|
139 |
-
searchResults=msg.searchResults[:500] + "..." if msg.searchResults else
|
140 |
searchEntities=[],
|
141 |
) for msg in old_history]
|
142 |
request.history = new_history
|
|
|
136 |
role=msg.role,
|
137 |
content=msg.content,
|
138 |
reasoning=msg.reasoning,
|
139 |
+
searchResults=msg.searchResults[:500] + "..." if msg.searchResults else '',
|
140 |
searchEntities=[],
|
141 |
) for msg in old_history]
|
142 |
request.history = new_history
|