debisoft commited on
Commit
559d5b6
·
1 Parent(s): 84eda2d

fixing ChatCompletion

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -16,7 +16,7 @@ client = OpenAI(
16
  )
17
 
18
  def get_completion_from_messages(messages, model="solar-1-mini-chat", temperature=0):
19
- response = client.ChatCompletion.create(
20
  model=model,
21
  messages=messages,
22
  temperature=temperature, # this is the degree of randomness of the model's output
 
16
  )
17
 
18
  def get_completion_from_messages(messages, model="solar-1-mini-chat", temperature=0):
19
+ response = client.chat.completions.create(
20
  model=model,
21
  messages=messages,
22
  temperature=temperature, # this is the degree of randomness of the model's output