feat: move base URL, API key, and model to server .env
- BASE_URL, API_KEY, MODEL now read from process.env (Bun auto-loads .env)
- requireEnv() fails fast at startup if any is missing
- request body simplifies to { prompt, size, referenceImages? }
- client drops the three fields from form and localStorage
- add .env.example as the variable-name source of truth
- AGENTS.md notes the 0.0.0.0 bind now exposes the upstream quota to
anyone reachable on the network
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
BASE_URL=https://api.openai.com/v1
|
||||
API_KEY=sk-...
|
||||
MODEL=gpt-image-2
|
||||
Reference in New Issue
Block a user