Added template for DOTENV_LOCAL secret
Browse files- chat-ui/template.env.local +108 -0
chat-ui/template.env.local
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use .env.local to change these variables
|
| 2 |
+
# DO NOT EDIT THIS FILE WITH SENSITIVE DATA
|
| 3 |
+
|
| 4 |
+
MONGODB_URL=mongodb://localhost:27017
|
| 5 |
+
MONGODB_DB_NAME=chat-ui
|
| 6 |
+
MONGODB_DIRECT_CONNECTION=true
|
| 7 |
+
|
| 8 |
+
COOKIE_NAME=hf-chat
|
| 9 |
+
HF_ACCESS_TOKEN= #hf_<token> from from https://huggingface.co/settings/token
|
| 10 |
+
HF_API_ROOT=https://api-inference.huggingface.co/models
|
| 11 |
+
|
| 12 |
+
#pastebin logging
|
| 13 |
+
PASTEBIN_DEV_KEY=
|
| 14 |
+
PASTEBIN_USERNAME=
|
| 15 |
+
PASTEBIN_PASSWORD=
|
| 16 |
+
|
| 17 |
+
# custom parameters
|
| 18 |
+
SIMILARITY_API_URL=https://muryshev-e5-sentence-similarity.hf.space/get_similar_sentences
|
| 19 |
+
SIMILARITY_THRESHOLD=0.8
|
| 20 |
+
|
| 21 |
+
#SAIGA_PROMPT_WEB_SEARCH_GENERATE_QUERY=`Представим, что ты специалист по налогам. Перефразируй запрос пользователя({{query}}) так, чтобы это можно было найти в поисковой системе.`
|
| 22 |
+
SAIGA_PROMPT_WEB_SEARCH_GENERATE_QUERY=`Сгенерируй поисковый запрос для текста далее. {{query}}`
|
| 23 |
+
#SAIGA_PROMPT_WEB_SEARCH_ANALYZE=Ответь на вопрос "{{query}}" используя факты и доказательства из моего текста. Информация из моего текста приоритетнее твоей. Мой текст: {{context}}
|
| 24 |
+
SAIGA_PROMPT_WEB_SEARCH_ANALYZE=`Напиши короткое эссе по мотивам моего текст ниже. Ответь только текстом эссе. Тема эссе: "{{query}}" Мой текст: {{context}}`
|
| 25 |
+
SAIGA_TRUNCATE_WEB_CONTEXT=4000
|
| 26 |
+
SAIGA_BYPASS_WEBSEARCH_QUERY=true
|
| 27 |
+
|
| 28 |
+
# used to activate search with web functionality. disabled if none are defined. choose one of the following:
|
| 29 |
+
SERPER_API_KEY= #your serper.dev api key here
|
| 30 |
+
SERPAPI_KEY= #your serpapi key here
|
| 31 |
+
YANDEX_API_KEY= #yandex api key. Workable only on white ip server
|
| 32 |
+
YANDEX_FOLDER_ID= #yandex folder id
|
| 33 |
+
USE_YANDEX_SEARCH=false
|
| 34 |
+
WEB_SEARCH_TEMPLATE="site:nalog.gov.ru {{query}}"
|
| 35 |
+
USE_CUSTOM_PARSER=true #tuned for nalog.gov.ru
|
| 36 |
+
MAX_N_PAGES_SCRAPE=3
|
| 37 |
+
|
| 38 |
+
# Parameters to enable "Sign in with HF"
|
| 39 |
+
OPENID_CLIENT_ID=
|
| 40 |
+
OPENID_CLIENT_SECRET=
|
| 41 |
+
OPENID_SCOPES="openid profile" # Add "email" for some providers like Google that do not provide preferred_username
|
| 42 |
+
OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.google.com
|
| 43 |
+
|
| 44 |
+
# Parameters to enable a global mTLS context for client fetch requests
|
| 45 |
+
USE_CLIENT_CERTIFICATE=false
|
| 46 |
+
CERT_PATH=#
|
| 47 |
+
KEY_PATH=#
|
| 48 |
+
CA_PATH=#
|
| 49 |
+
CLIENT_KEY_PASSWORD=#
|
| 50 |
+
REJECT_UNAUTHORIZED=true
|
| 51 |
+
|
| 52 |
+
# 'name', 'userMessageToken', 'assistantMessageToken' are required
|
| 53 |
+
#https://muryshev-saiga-api-cuda.hf.space
|
| 54 |
+
#https://muryshev-saiga2-13b-gguf.hf.space
|
| 55 |
+
MODELS=`[
|
| 56 |
+
{
|
| 57 |
+
"endpoints": [{"url": "https://muryshev-saiga-api-cuda.hf.space"}],
|
| 58 |
+
"name": "cheburashka",
|
| 59 |
+
"datasetName": "OpenAssistant/oasst1",
|
| 60 |
+
"description": "A good alternative to ChatGPT",
|
| 61 |
+
"websiteUrl": "https://open-assistant.io",
|
| 62 |
+
"userMessageToken": "",
|
| 63 |
+
"assistantMessageToken": "",
|
| 64 |
+
"messageEndToken": "",
|
| 65 |
+
"preprompt": "",
|
| 66 |
+
"promptExamples": [],
|
| 67 |
+
"parameters": {
|
| 68 |
+
"temperature": 0.01,
|
| 69 |
+
"top_p": 0.95,
|
| 70 |
+
"repetition_penalty": 1.2,
|
| 71 |
+
"top_k": 30,
|
| 72 |
+
"truncate": 2000,
|
| 73 |
+
"max_new_tokens": 1024
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
]`
|
| 77 |
+
OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
|
| 78 |
+
|
| 79 |
+
PUBLIC_ORIGIN=#https://huggingface.co
|
| 80 |
+
PUBLIC_SHARE_PREFIX=#https://hf.co/chat
|
| 81 |
+
PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
|
| 82 |
+
PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable
|
| 83 |
+
PUBLIC_ANNOUNCEMENT_BANNERS=`[
|
| 84 |
+
{
|
| 85 |
+
"title": "Llama v2 is live on HuggingChat! 🦙",
|
| 86 |
+
"linkTitle": "Announcement",
|
| 87 |
+
"linkHref": "https://huggingface.co/blog/llama2"
|
| 88 |
+
}
|
| 89 |
+
]`
|
| 90 |
+
|
| 91 |
+
PARQUET_EXPORT_DATASET=
|
| 92 |
+
PARQUET_EXPORT_HF_TOKEN=
|
| 93 |
+
PARQUET_EXPORT_SECRET=
|
| 94 |
+
|
| 95 |
+
RATE_LIMIT= # requests per minute
|
| 96 |
+
MESSAGES_BEFORE_LOGIN=# how many messages a user can send in a conversation before having to login. set to 0 to force login right away
|
| 97 |
+
|
| 98 |
+
PUBLIC_APP_NAME= # name used as title throughout the app
|
| 99 |
+
PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
|
| 100 |
+
PUBLIC_APP_COLOR=blue # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
|
| 101 |
+
PUBLIC_APP_DATA_SHARING=#set to 1 to enable options & text regarding data sharing
|
| 102 |
+
PUBLIC_APP_DISCLAIMER=#set to 1 to show a disclaimer on login page
|
| 103 |
+
|
| 104 |
+
# PUBLIC_APP_NAME=HuggingChat
|
| 105 |
+
# PUBLIC_APP_ASSETS=huggingchat
|
| 106 |
+
# PUBLIC_APP_COLOR=yellow
|
| 107 |
+
# PUBLIC_APP_DATA_SHARING=1
|
| 108 |
+
# PUBLIC_APP_DISCLAIMER=1
|