chitkenkhoi commited on
Commit
42cc103
·
1 Parent(s): b8aa43a

prompt fixing

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -178,13 +178,12 @@ Câu trả lời tôi muốn nhận được: Đối với hệ đại trà ngo
178
  }
179
  ]
180
  history = retrieve_conversation(conversation_id)
181
- for c in history:
182
- messages.append({
183
- "role": "user",
184
- "content": c["q"]})
185
- messages.append({
186
- "role": "assistant",
187
- "content": c["a"] })
188
  if cid:
189
  messages.append({
190
  "role": "user",
 
178
  }
179
  ]
180
  history = retrieve_conversation(conversation_id)
181
+ messages.append({
182
+ "role": "user",
183
+ "content": history[-1]["q"]})
184
+ messages.append({
185
+ "role": "assistant",
186
+ "content": history[-1]["a"] })
 
187
  if cid:
188
  messages.append({
189
  "role": "user",