- chatbot/plugins/chat.py +1 -1
chatbot/plugins/chat.py
CHANGED
@@ -180,7 +180,7 @@ async def search_auto_by_cohere(user_id, prompt):
|
|
180 |
)
|
181 |
data = []
|
182 |
output = ""
|
183 |
-
for event in stream:
|
184 |
if event.event_type == "search-results":
|
185 |
if event.documents:
|
186 |
data.extend(event.documents)
|
|
|
180 |
)
|
181 |
data = []
|
182 |
output = ""
|
183 |
+
async for event in stream:
|
184 |
if event.event_type == "search-results":
|
185 |
if event.documents:
|
186 |
data.extend(event.documents)
|