Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,7 +112,7 @@ async def request_gpt4o_completion(image_id: str, user_credit: int):
|
|
| 112 |
headers = {"Authorization": f"Bearer {OPENAI_KEY}", "Content-Type": "application/json"}
|
| 113 |
image_url = f"https://drive.usercontent.google.com/u/0/uc?id={image_id}&export=download"
|
| 114 |
body = {
|
| 115 |
-
"model": "gpt-4o",
|
| 116 |
"response_format": { "type": "json_object" },
|
| 117 |
"messages": [
|
| 118 |
{
|
|
|
|
| 112 |
headers = {"Authorization": f"Bearer {OPENAI_KEY}", "Content-Type": "application/json"}
|
| 113 |
image_url = f"https://drive.usercontent.google.com/u/0/uc?id={image_id}&export=download"
|
| 114 |
body = {
|
| 115 |
+
"model": "gpt-4o-mini",
|
| 116 |
"response_format": { "type": "json_object" },
|
| 117 |
"messages": [
|
| 118 |
{
|