carepath-api / .env.ckey.example
tranth3truong's picture
Deploy CP-UX-17: public demo hub, same-origin API, one design world
aacc29a
Raw
History Blame Contribute Delete
1.13 kB
# CarePath CKey runtime
APP_ENV=local
ASR_PROVIDER=gipformer
ALLOW_MOCK_ASR=false
# CKey uses the OpenAI-compatible chat/completions route.
# Get the key from the CKey AI API Console and keep .env out of source control.
LLM_PROVIDER=ckey
LLM_BASE_URL=https://api.xah.io/v1
LLM_MODEL=gpt-5.4
LLM_API_KEY=sk-YOUR_API_KEY
LLM_TIMEOUT_SECONDS=120
# Demo safety net: if CKey fails/times out, serve the deterministic offline
# generator instead of returning an error. Set to false to fail hard.
LLM_FALLBACK_OFFLINE=true
# Retrieval
MEDICAL_LEXICON_PATH=data/medical_lexicon.json
RETRIEVAL_TOP_K=5
# Gipformer ASR
GIPFORMER_QUANTIZE=int8
GIPFORMER_NUM_THREADS=4
GIPFORMER_DECODING_METHOD=modified_beam_search
GIPFORMER_CHUNK_SECONDS=20
# Abuse guard
TEAM_CODE=
SOAP_RATE_LIMIT_PER_IP_HOUR=3
SOAP_RATE_LIMIT_PER_IP_DAY=10
SOAP_RATE_LIMIT_GLOBAL_DAY=100
# --- Interpreter module ---
# Real translation over the same CKey gateway and key as the scribe half above.
# Requires a non-default ADMIN_TOKEN; startup refuses "change-me".
PROVIDER_MODE=ckey
ADMIN_TOKEN=change-me-before-running-ckey
DATABASE_URL=sqlite:///./carepath.db