CoolFace
Apppublic

lkthomas/StarCoder

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
.env.local.template71 linesDownload Raw Back to root
1# Use .env.local to change these variables2# DO NOT EDIT THIS FILE WITH SENSITIVE DATA3 4MONGODB_URL=${MONGODB_URL}5MONGODB_DB_NAME=chat-ui6MONGODB_DIRECT_CONNECTION=false7 8 9COOKIE_NAME=chat-ui10HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token11 12# used to activate search with web functionality. disabled if not defined13SERPAPI_KEY=#your serpapi key here14 15# Parameters to enable "Sign in with HF"16OPENID_CLIENT_ID=17OPENID_CLIENT_SECRET=18OPENID_SCOPES="openid profile" # Add "email" for some providers like Google that do not provide preferred_username19OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.google.com20 21 22# 'name', 'userMessageToken', 'assistantMessageToken' are required23MODELS=`[24  {25    "name": "${MODEL_NAME}",26    "chatPromptTemplate": "${MODEL_PROMPT_TEMPLATE}",27    "preprompt": "",28    "promptExamples": [29      {30        "title": "Python Fibonacci",31        "prompt": "How can I write a Python function to generate the nth Fibonacci number?"32      }, {33        "title": "What is a meme?",34        "prompt": "What is a meme, and what's the history behind this word?"35      }, {36        "title": "Regex",37        "prompt": "Create a regex to extract dates from logs"38      }39    ],40    "endpoints": [41      {42        "type": "tgi",43        "url": "http://127.0.0.1:8080"44      }45    ],46    "parameters": ${MODEL_PARAMS}47  }48]`49OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`50 51PUBLIC_ORIGIN=${SPACE_HOST}52PUBLIC_SHARE_PREFIX=${SPACE_HOST}/r53PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable54PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable55PUBLIC_ANNOUNCEMENT_BANNERS=`[56  {57    "title": "Chat UI is now open sourced on GitHub",58    "linkTitle": "GitHub repo",59    "linkHref": "https://github.com/huggingface/chat-ui"60  }61]`62 63PARQUET_EXPORT_DATASET=64PARQUET_EXPORT_HF_TOKEN=65PARQUET_EXPORT_SECRET=66 67PUBLIC_APP_NAME=${APP_NAME} # name used as title throughout the app68PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS69PUBLIC_APP_COLOR=${APP_COLOR} # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette70PUBLIC_APP_DATA_SHARING=#set to 1 to enable disclaimers & options about data sharing71PUBLIC_APP_DATA_DISCLAIMER=#set to 1 to enable disclaimers about model outputs