alfredplpl commited on
Commit
615b9c2
·
verified ·
1 Parent(s): a193d7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def chat_llama3_8b(message: str,
69
  str: The generated response.
70
  """
71
  conversation = []
72
- conversation.append({"role": "system", "content": "あなたは誠実で優秀な日本人のアシスタントです。"})
73
  for user, assistant in history:
74
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
75
  conversation.append({"role": "user", "content": message})
 
69
  str: The generated response.
70
  """
71
  conversation = []
72
+ conversation.append({"role": "system", "content": "あなたは誠実で優秀な日本人のアシスタントです。日本語で聞かれた場合、必ず日本語で返答してください。"})
73
  for user, assistant in history:
74
  conversation.extend([{"role": "user", "content": user}, {"role": "assistant", "content": assistant}])
75
  conversation.append({"role": "user", "content": message})