Skip to content

Commit 2729ccf

Browse files
committed
rely on conversation context no matter what
1 parent d2b77bf commit 2729ccf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@ def llm(*, conversation_id: str, query: str, session: Session = Depends(get_sess
185185
"""
186186
conversation_data = get_conversation(conversation_id, session)
187187
history = conversation_data.messages
188-
if config.use_flow_agents:
189-
return convo.predict(query, conversation_id)
190-
else:
191-
return convo.predict(query, history)
188+
189+
return convo.predict(query, conversation_id)
190+
191+
# we could also work from history only
192+
# return convo.predict(query, history)
192193

193194

194195
@app.post("/conversations/{conversation_id}/messages/{message_id}/upvote", response_model=Message)

0 commit comments

Comments
 (0)