Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
9 |
def chat_with_openai(input_text):
|
10 |
try:
|
11 |
response = openai.Completion.create(
|
12 |
-
engine="gpt-4o", # Use the model you want (e.g., 'gpt-3.5-turbo', 'gpt-4')
|
13 |
prompt=input_text,
|
14 |
max_tokens=150,
|
15 |
n=1,
|
|
|
9 |
def chat_with_openai(input_text):
|
10 |
try:
|
11 |
response = openai.Completion.create(
|
12 |
+
engine="gpt-4o-mini", # Use the model you want (e.g., 'gpt-3.5-turbo', 'gpt-4')
|
13 |
prompt=input_text,
|
14 |
max_tokens=150,
|
15 |
n=1,
|