fix: fine-tuner uses FT_DB_URL/FT_GATEWAY_URL/FT_OLLAMA_URL env vars, not DATABASE_URL
This commit is contained in:
parent
d8deecdb32
commit
3bb9923255
15
packages/fine-tuner/scripts/start.sh
Normal file → Executable file
15
packages/fine-tuner/scripts/start.sh
Normal file → Executable file
@ -35,9 +35,16 @@ cleanup() {
|
|||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
# Run fine-tuner with tunnel DB URL
|
# Run fine-tuner with tunnel DB URL
|
||||||
export DATABASE_URL="postgresql://llm:llm_secure_2026@localhost:${TUNNEL_PORT}/llm_gateway"
|
# Fine-tuner reads FT_DB_URL (see src/main.py load_config)
|
||||||
export GATEWAY_URL="https://llm-gateway.context-x.org"
|
export FT_DB_URL="postgresql://llm:llm_secure_2026@localhost:${TUNNEL_PORT}/llm_gateway"
|
||||||
export OLLAMA_URL="http://localhost:11434"
|
export FT_GATEWAY_URL="https://llm-gateway.context-x.org"
|
||||||
|
export FT_OLLAMA_URL="http://localhost:11434"
|
||||||
|
|
||||||
echo "[start.sh] Starting fine-tuner..."
|
echo "[start.sh] Starting fine-tuner..."
|
||||||
python3 src/main.py "$@"
|
# Route --status / --dry-run / --task-type / --general / --dpo to manual_trigger.py
|
||||||
|
# No args = daemon loop via python3 -m src.main
|
||||||
|
if [ "$#" -eq 0 ]; then
|
||||||
|
python3 -m src.main
|
||||||
|
else
|
||||||
|
python3 scripts/manual_trigger.py "$@"
|
||||||
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user