Spaces:
Runtime error
Runtime error
Commit
·
ba15c08
1
Parent(s):
4dd4bcf
test
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ openai.api_key = os.environ['OPENAI_API_TOKEN']
|
|
17 |
|
18 |
def chat(system_prompt, user_prompt, model = 'gpt-3.5-turbo', temperature = 0, verbose = False):
|
19 |
''' Normal call of OpenAI API '''
|
20 |
-
response = openai.
|
21 |
temperature = temperature,
|
22 |
model=model,
|
23 |
messages=[
|
|
|
17 |
|
18 |
def chat(system_prompt, user_prompt, model = 'gpt-3.5-turbo', temperature = 0, verbose = False):
|
19 |
''' Normal call of OpenAI API '''
|
20 |
+
response = openai.Completion.create(
|
21 |
temperature = temperature,
|
22 |
model=model,
|
23 |
messages=[
|