Islamic4 / config.js
Ghada-99-Ragab's picture
Upload 31 files
0390c03 verified
Raw History Blame Contribute Delete
993 Bytes
/* Runtime configuration. Loaded before app.js. */
window.ICV_CONFIG = {
/* "Ask then Verify" uses this pre-configured OpenAI (ChatGPT) client.
WARNING: this file is public in a Static Space. Keep a small monthly spend limit on the key. */
OPENAI_API_KEY: "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",
OPENAI_MODEL: "gpt-4o-mini",
OPENAI_ENDPOINT: "https://api.openai.com/v1/chat/completions",
/* Fine-tuned CAMeLBERT-MSA token classifier hosted on Hugging Face.
Leave HF_MODEL_ID empty to run the in-browser simulation. */
HF_MODEL_ID: "", // e.g. "your-username/camelbert-msa-islamiceval-1a"
HF_ENDPOINT_URL: "", // optional: a dedicated Inference Endpoint URL (overrides HF_MODEL_ID)
HF_TOKEN: "", // optional, only for private models
CACHE_VERSION: "v2",
CACHE_MAX_ENTRIES: 40,
PYODIDE_VERSION: "0.26.4"
};