carepath-api / .env.ckey.example
tranth3truong's picture
Deploy public Scribe-only CarePath Space
cc678b9
Raw
History Blame Contribute Delete
971 Bytes
# 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 (mock until its cloud track lands) ---
PROVIDER_MODE=mock
DATABASE_URL=sqlite:///./carepath.db