feat(recipe-generation): scale-batch.ts för Fas A Steg 2 (~200 verified)
- 8 batchar om ~27 recept = ~216 mål - Budgetguard med pause vid 90 % - DB-dedup mot recipes.titleSv + session-dedup - Seed verified till staging DB (recipes, recipeIngredients, recipeSteps) - Stickprov ~15 % per batch med flaggning - scale-batch.sh wrapper för Node IPv4-workaround - Lade till ./client export i @app/database - Lade till dotenv i @app/recipe-generation deps Relaterat till docs/32-receptkatalog-buildout.md
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# scale-batch.sh – wrapper som sätter IPv4-preferens (workaround för Node fetch-häng på WSL+IPv6)
|
||||
set -e
|
||||
cd "$(dirname "$0")/.."
|
||||
export NODE_OPTIONS="${NODE_OPTIONS:---dns-result-order=ipv4first}"
|
||||
export AAMOS_MODE=gemini
|
||||
export GEMINI_MODEL=gemini-2.5-flash
|
||||
export GEMINI_TIMEOUT_MS=180000
|
||||
# GEMINI_API_KEY och GEMINI_DAILY_BUDGET_USD måste sättas utanför
|
||||
pnpm tsx packages/recipe-generation/scripts/scale-batch.ts "$@"
|
||||
Reference in New Issue
Block a user