IliaLarchenko commited on
Commit
68e9ce7
1 Parent(s): 1b279d5

Adjusted temperature

Browse files
Files changed (1) hide show
  1. llm.py +2 -0
llm.py CHANGED
@@ -28,6 +28,7 @@ def get_problem(requirements, difficulty, topic, model, client=client):
28
  {"role": "system", "content": prompt_system},
29
  {"role": "user", "content": full_prompt},
30
  ],
 
31
  )
32
  question = response.choices[0].message.content.strip()
33
  chat_history = init_bot(question)
@@ -47,6 +48,7 @@ def end_interview(chat_history, model, client=client):
47
  {"role": "user", "content": "Interview transcript:" + "\n\n".join(transcript)},
48
  {"role": "user", "content": "Grade the interview based on the transcript provided and give a feedback."},
49
  ],
 
50
  )
51
  feedback = response.choices[0].message.content.strip()
52
  return feedback
 
28
  {"role": "system", "content": prompt_system},
29
  {"role": "user", "content": full_prompt},
30
  ],
31
+ temperature=1.5,
32
  )
33
  question = response.choices[0].message.content.strip()
34
  chat_history = init_bot(question)
 
48
  {"role": "user", "content": "Interview transcript:" + "\n\n".join(transcript)},
49
  {"role": "user", "content": "Grade the interview based on the transcript provided and give a feedback."},
50
  ],
51
+ temperature=0.5,
52
  )
53
  feedback = response.choices[0].message.content.strip()
54
  return feedback