fixing ChatCompletion
Browse files
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.
|
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
|