juanmartip95 commited on
Commit
8528a85
1 Parent(s): 59a51a3

Update ChatResponse.py

Browse files
Files changed (1) hide show
  1. ChatResponse.py +2 -2
ChatResponse.py CHANGED
@@ -4,14 +4,14 @@ import os
4
  openai.api_key = os.environ["OPENAI_API_KEY"]
5
 
6
  # ChatGPT completion
7
- llm_name = "gpt-3.5-turbo-1106"
8
 
9
  def get_completion_from_messages(messages, model=llm_name, temperature=0):
10
  response = openai.ChatCompletion.create(
11
  model=model,
12
  messages=messages,
13
  temperature=temperature, # this is the degree of randomness of the model's output
14
- response_format={"type": "json_object"}
15
  )
16
  return response.choices[0].message["content"]
17
 
 
4
  openai.api_key = os.environ["OPENAI_API_KEY"]
5
 
6
  # ChatGPT completion
7
+ llm_name = "gpt-3.5-turbo"
8
 
9
  def get_completion_from_messages(messages, model=llm_name, temperature=0):
10
  response = openai.ChatCompletion.create(
11
  model=model,
12
  messages=messages,
13
  temperature=temperature, # this is the degree of randomness of the model's output
14
+ #response_format={"type": "json_object"}
15
  )
16
  return response.choices[0].message["content"]
17