gufett0 commited on
Commit
9a2efed
·
1 Parent(s): cc44191

added introductory prompt

Browse files
Files changed (1) hide show
  1. backend.py +1 -1
backend.py CHANGED
@@ -79,7 +79,7 @@ def handle_query(query_str: str,
79
 
80
  conversation: List[ChatMessage] = []
81
  for user, assistant in chat_history:
82
- conversation.append([
83
  ChatMessage(role=MessageRole.USER, content=user),
84
  ChatMessage(role=MessageRole.ASSISTANT, content=assistant),
85
  ]
 
79
 
80
  conversation: List[ChatMessage] = []
81
  for user, assistant in chat_history:
82
+ conversation.extend([
83
  ChatMessage(role=MessageRole.USER, content=user),
84
  ChatMessage(role=MessageRole.ASSISTANT, content=assistant),
85
  ]