File size: 893 Bytes
c08b36a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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_TOKEN: "",             // optional, only for private models

  CACHE_VERSION: "v2",
  CACHE_MAX_ENTRIES: 40,
  PYODIDE_VERSION: "0.26.4"
};