chalchitra / .env.example
ajit3259's picture
feat(backend): resilience — timeouts, bounded retry, clean errors
805de87
Raw
History Blame Contribute Delete
829 Bytes
# Chalchitra configuration — copy to .env for local dev.
# The frontend, prompt, and JSON contract never change; only this does.
# Which provider answers. openai_compatible (LM Studio / TGI / vLLM) or hf_local.
CHALCHITRA_PROVIDER=openai_compatible
# --- LM Studio (local dev, "Off the Grid") ---
CHALCHITRA_BASE_URL=http://localhost:1234/v1
CHALCHITRA_MODEL=google/gemma-4-e4b
# also loaded locally: google/gemma-4-12b
CHALCHITRA_API_KEY=lm-studio
# Sampling. Higher = more poetic/varied; lower = safer.
CHALCHITRA_TEMPERATURE=0.8
# Seconds before a slow/down model server is given up on (fails fast, not hangs).
CHALCHITRA_TIMEOUT=120
# Set to 1 to add the two tested prompt refinements (anti-plot-summary, etc.)
# only after observing a small model drift. Default off = known-good baseline.
CHALCHITRA_REFINED_PROMPT=0