You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SPEC.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Implement a web app where:
10
10
- When the daily generation budget is exhausted, the backend returns a random previously generated image instead of requesting a new one.
11
11
- The backend waits for image generation to finish before replying.
12
12
- The final image is rendered from a public S3 HTTPS URL.
13
-
- The image is generated by the OpenAI image generation API using the fixed model `gpt-image-1.5`.
13
+
- The image is generated by the OpenAI image generation API using the fixed model `gpt-image-2`.
14
14
- The generation prompt should use the request's origin country when the server can resolve it from the client IP through `country.is`, and otherwise fall back to a generic worldwide prompt.
15
15
- The backend performs `country.is` lookups and OpenAI image-generation requests with AsyncHTTPClient.
16
16
- The backend uses a long-lived Hummingbird server.
@@ -148,7 +148,7 @@ Rules:
148
148
- Instruct the model to show exactly one hero food item with no combo meals, side dishes, drinks, menus, flags, labels, or text.
149
149
- Instruct the model to avoid defaulting to globally common fast food such as hamburgers, fries, pizza, or hot dogs unless the subject is a distinctive named local variation.
150
150
- Fall back to the same prompt structure scoped to somewhere in the world when the client IP or country cannot be resolved.
151
-
- Call the OpenAI image generation API with model `gpt-image-1.5`.
151
+
- Call the OpenAI image generation API with model `gpt-image-2`, PNG output.
152
152
- Upload the PNG to the generated image key used for the dated generation pool.
153
153
- Upload the same PNG to the daily page-cache key.
0 commit comments