Files
Cibello-app/scripts/scale-batch.sh
T
Sven (AAMOS AI) 84f8ff3c45 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
2026-08-09 22:03:55 +07:00

11 lines
442 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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 "$@"