Spaces:
Running
Running
updated gpt-4 version
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def APIcall(prompt:str, temperature = 0.7, max_tokens = 1024, model="GPT-3.5", s
|
|
29 |
if model == "GPT-3.5":
|
30 |
model = "gpt-3.5-turbo"
|
31 |
else:
|
32 |
-
model = "gpt-4-
|
33 |
# make the API call with the given parameter
|
34 |
response = openai.chat.completions.create(
|
35 |
model=model,
|
|
|
29 |
if model == "GPT-3.5":
|
30 |
model = "gpt-3.5-turbo"
|
31 |
else:
|
32 |
+
model = "gpt-4-turbo-preview"
|
33 |
# make the API call with the given parameter
|
34 |
response = openai.chat.completions.create(
|
35 |
model=model,
|