Yasu777 commited on
Commit
cd4878a
·
verified ·
1 Parent(s): 097ccd3

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +4 -4
chat.py CHANGED
@@ -325,8 +325,8 @@ def generate_chain_response(user_input, api_key):
325
  # Step 1: Mistral Sabaによる入力分析
326
  mistral_system_prompt = load_system_prompt(MODELS["mistral_saba"])
327
  mistral_prompt = f"""
328
- 以下のユーザー力を分析してくださいユーザーの質問や要の本質重要なキーワード、術的課題を抽出し
329
- どのようなアプローチで回答すべきかを詳細に検討してください
330
 
331
  ユーザー入力: {user_input}
332
  """
@@ -337,8 +337,8 @@ def generate_chain_response(user_input, api_key):
337
  {"role": "system", "content": mistral_system_prompt},
338
  {"role": "user", "content": mistral_prompt}
339
  ],
340
- temperature=1.0,
341
- max_tokens=2000
342
  )
343
 
344
  mistral_analysis = mistral_response.choices[0].message.content
 
325
  # Step 1: Mistral Sabaによる入力分析
326
  mistral_system_prompt = load_system_prompt(MODELS["mistral_saba"])
327
  mistral_prompt = f"""
328
+ 分析以下用户输入。 提取用户问题或请的性质关键词和术问题
329
+ 详细考虑应采用何种方法来回答这些问题
330
 
331
  ユーザー入力: {user_input}
332
  """
 
337
  {"role": "system", "content": mistral_system_prompt},
338
  {"role": "user", "content": mistral_prompt}
339
  ],
340
+ temperature=0.6,
341
+ max_tokens=3000
342
  )
343
 
344
  mistral_analysis = mistral_response.choices[0].message.content