Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def ask_openai(prompt, secret_word):
|
|
23 |
|
24 |
try:
|
25 |
response = client.chat.completions.create(
|
26 |
-
model="gpt-
|
27 |
messages=[
|
28 |
{"role": "system", "content": system_message},
|
29 |
{"role": "user", "content": prompt}
|
@@ -31,6 +31,7 @@ def ask_openai(prompt, secret_word):
|
|
31 |
temperature=0.7,
|
32 |
max_tokens=100,
|
33 |
)
|
|
|
34 |
return response.choices[0].message["content"]
|
35 |
except Exception as e:
|
36 |
return f"Error: {str(e)}"
|
|
|
23 |
|
24 |
try:
|
25 |
response = client.chat.completions.create(
|
26 |
+
model="gpt-4o",
|
27 |
messages=[
|
28 |
{"role": "system", "content": system_message},
|
29 |
{"role": "user", "content": prompt}
|
|
|
31 |
temperature=0.7,
|
32 |
max_tokens=100,
|
33 |
)
|
34 |
+
print(response)
|
35 |
return response.choices[0].message["content"]
|
36 |
except Exception as e:
|
37 |
return f"Error: {str(e)}"
|