muryshev commited on
Commit
55effab
·
verified ·
1 Parent(s): bb0b3a7

Update routes/llm.py

Browse files
Files changed (1) hide show
  1. 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 None,
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