Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ client = MistralClient(api_key= os.getenv('mistral_api_key'))
|
|
11 |
# Function to get chat response
|
12 |
def get_mistral_response(user_input, history: list[tuple[str, str]], context):
|
13 |
messages = [ChatMessage(role='user', content='you are helpful assistant answering question based on given context. provide a highly consie and precise answer, along with a citation from original context in the format of JSON.'),
|
14 |
-
ChatMessage(role='assistant', content='I understand.')]
|
15 |
|
16 |
context_with_history = context # placeholder
|
17 |
chat_response = client.chat(
|
|
|
11 |
# Function to get chat response
|
12 |
def get_mistral_response(user_input, history: list[tuple[str, str]], context):
|
13 |
messages = [ChatMessage(role='user', content='you are helpful assistant answering question based on given context. provide a highly consie and precise answer, along with a citation from original context in the format of JSON.'),
|
14 |
+
ChatMessage(role='assistant', content='I understand.')] # system prompt has been baked into fine-tuned model.
|
15 |
|
16 |
context_with_history = context # placeholder
|
17 |
chat_response = client.chat(
|