Liusuthu commited on
Commit
0269f7a
1 Parent(s): bbb0ca5

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +0 -10
chat.py CHANGED
@@ -18,16 +18,6 @@ def predict(message, history):
18
 
19
  response = client.chat.completions.create(model='gpt-3.5-turbo',
20
  messages= history_openai_format,
21
- # messages=[
22
- # {
23
- # "role": "system",
24
- # "content": "你是一个专业的中国心理医生,你的所有内容都需要用【中文】回答,你必须对你的患者耐心,你需要以【朋友】的身份和患者交流,这意味着你需要用更加【口语化】的文字回答,并且【不要长篇大论】,更【不要分点作答】。",
25
- # },
26
- # {
27
- # "role": "user",
28
- # "content": message,
29
- # },
30
- # ],
31
  temperature=1.0,
32
  stream=True)
33
 
 
18
 
19
  response = client.chat.completions.create(model='gpt-3.5-turbo',
20
  messages= history_openai_format,
 
 
 
 
 
 
 
 
 
 
21
  temperature=1.0,
22
  stream=True)
23