Thebull commited on
Commit
01359c6
·
verified ·
1 Parent(s): 46fd9fb

Upload env.local.txt

Browse files
Files changed (1) hide show
  1. env.local.txt +109 -0
env.local.txt ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use .env.local to change these variables
2
+ # DO NOT EDIT THIS FILE WITH SENSITIVE DATA
3
+
4
+ MONGODB_URL=mongodb+srv://TH3_BULL:<1990>@psicolocuras.2kewwur.mongodb.net/
5
+ MONGODB_DB_NAME=chat-ui
6
+ MONGODB_DIRECT_CONNECTION=false
7
+
8
+ COOKIE_NAME=hf-chat
9
+ HF_ACCESS_TOKEN=#hf_<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> from from https://huggingface.co/settings/token
10
+ HF_API_ROOT=https://api-inference.huggingface.co/models
11
+ OPENAI_API_KEY=#your openai api key here
12
+
13
+ # used to activate search with web functionality. disabled if none are defined. choose one of the following:
14
+ YDC_API_KEY=#your docs.you.com api key here
15
+ SERPER_API_KEY=#your serper.dev api key here
16
+ SERPAPI_KEY=#your serpapi key here
17
+
18
+ # Parameters to enable open id login
19
+ OPENID_CONFIG=`{
20
+ "PROVIDER_URL": "",
21
+ "CLIENT_ID": "",
22
+ "CLIENT_SECRET": "",
23
+ "SCOPES": ""
24
+ }`
25
+
26
+ # /!\ legacy openid settings, prefer the config above
27
+ OPENID_CLIENT_ID=
28
+ OPENID_CLIENT_SECRET=
29
+ OPENID_SCOPES="openid profile" # Add "email" for some providers like Google that do not provide preferred_username
30
+ OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.google.com
31
+ OPENID_TOLERANCE=
32
+ OPENID_RESOURCE=
33
+
34
+ # Parameters to enable a global mTLS context for client fetch requests
35
+ USE_CLIENT_CERTIFICATE=false
36
+ CERT_PATH=#
37
+ KEY_PATH=#
38
+ CA_PATH=#
39
+ CLIENT_KEY_PASSWORD=#
40
+ REJECT_UNAUTHORIZED=true
41
+
42
+ # 'name', 'userMessageToken', 'assistantMessageToken' are required
43
+ MODELS=`[
44
+ {
45
+ "name": "OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5",
46
+ "datasetName": "OpenAssistant/oasst1",
47
+ "description": "A good alternative to ChatGPT",
48
+ "websiteUrl": "https://open-assistant.io",
49
+ "userMessageToken": "<|prompter|>",
50
+ "assistantMessageToken": "<|assistant|>",
51
+ "messageEndToken": "</s>",
52
+ "preprompt": "Below are a series of dialogues between various people and an AI assistant. The AI tries to be helpful, polite, honest, sophisticated, emotionally aware, and humble-but-knowledgeable. The assistant is happy to help with almost anything, and will do its best to understand exactly what is needed. It also tries to avoid giving false or misleading information, and it caveats when it isn't entirely sure about the right answer. That said, the assistant is practical and really does its best, and doesn't let caution get too much in the way of being useful.\n-----\n",
53
+ "promptExamples": [
54
+ {
55
+ "title": "Write an email from bullet list",
56
+ "prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
57
+ }, {
58
+ "title": "Code a snake game",
59
+ "prompt": "Code a basic snake game in python, give explanations for each step."
60
+ }, {
61
+ "title": "Assist in a task",
62
+ "prompt": "How do I make a delicious lemon cheesecake?"
63
+ }
64
+ ],
65
+ "parameters": {
66
+ "temperature": 0.9,
67
+ "top_p": 0.95,
68
+ "repetition_penalty": 1.2,
69
+ "top_k": 50,
70
+ "truncate": 1000,
71
+ "max_new_tokens": 1024
72
+ }
73
+ }
74
+ ]`
75
+ OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
76
+ TASK_MODEL='' # name of the model used for tasks such as summarizing title, creating query, etc.
77
+
78
+ PUBLIC_ORIGIN=#https://huggingface.co
79
+ PUBLIC_SHARE_PREFIX=#https://hf.co/chat
80
+ PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
81
+ PUBLIC_ANNOUNCEMENT_BANNERS=`[
82
+ {
83
+ "title": "Llama v2 is live on HuggingChat! 🦙",
84
+ "linkTitle": "Announcement",
85
+ "linkHref": "https://huggingface.co/blog/llama2"
86
+ }
87
+ ]`
88
+
89
+ PARQUET_EXPORT_DATASET=
90
+ PARQUET_EXPORT_HF_TOKEN=
91
+ PARQUET_EXPORT_SECRET=
92
+
93
+ RATE_LIMIT= # requests per minute
94
+ 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
95
+
96
+ PUBLIC_APP_NAME=ChatUI # name used as title throughout the app
97
+ PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
98
+ PUBLIC_APP_COLOR=blue # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
99
+ PUBLIC_APP_DESCRIPTION=# description used throughout the app (if not set, a default one will be used)
100
+ PUBLIC_APP_DATA_SHARING=#set to 1 to enable options & text regarding data sharing
101
+ PUBLIC_APP_DISCLAIMER=#set to 1 to show a disclaimer on login page
102
+ LLM_SUMMERIZATION=true
103
+
104
+ # PUBLIC_APP_NAME=HuggingChat
105
+ # PUBLIC_APP_ASSETS=huggingchat
106
+ # PUBLIC_APP_COLOR=yellow
107
+ # PUBLIC_APP_DESCRIPTION="Making the community's best AI chat models available to everyone."
108
+ # PUBLIC_APP_DATA_SHARING=1
109
+ # PUBLIC_APP_DISCLAIMER=1