change code
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ client = OpenAI(api_key=api_key, base_url="https://api.perplexity.ai")
|
|
| 6 |
|
| 7 |
def predict(message, history):
|
| 8 |
history_openai_format = []
|
| 9 |
-
|
| 10 |
|
| 11 |
#for human, assistant in history:
|
| 12 |
# history_openai_format.append({"role": "user", "content": human })
|
|
|
|
| 6 |
|
| 7 |
def predict(message, history):
|
| 8 |
history_openai_format = []
|
| 9 |
+
history_openai_format.append({"role": "system", "content": "Answer the questions in japanese only"})
|
| 10 |
|
| 11 |
#for human, assistant in history:
|
| 12 |
# history_openai_format.append({"role": "user", "content": human })
|