nirdrang commited on
Commit
326ad69
·
verified ·
1 Parent(s): dff58d2

Create .env.local

Browse files
Files changed (1) hide show
  1. .env.local +65 -0
.env.local ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use .env.local to change these variables
2
+ # DO NOT EDIT THIS FILE WITH SENSITIVE DATA
3
+
4
+ MONGODB_URL=${MONGODB_URL}
5
+ MONGODB_DB_NAME=chat-ui
6
+ MONGODB_DIRECT_CONNECTION=false
7
+
8
+
9
+ COOKIE_NAME=chat-ui
10
+ HF_ACCESS_TOKEN=#hf_<token> from from https://huggingface.co/settings/token
11
+
12
+ # used to activate search with web functionality. disabled if not defined
13
+ SERPAPI_KEY=#your serpapi key here
14
+
15
+ # Parameters to enable "Sign in with HF"
16
+ #OPENID_CLIENT_ID="353185966910-cdug7gfeva5anb8u0dgopfc8f7vm3r3l.apps.googleusercontent.com"
17
+ #OPENID_CLIENT_SECRET="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"
18
+ #OPENID_SCOPES="openid profile email" # Add "email" for some providers like Google that do not provide preferred_username
19
+ #OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.google.com
20
+ #OPENID_PROVIDER_URL=https://accounts.google.com
21
+
22
+ OPENID_CONFIG=`{
23
+ "PROVIDER_URL": "https://accounts.google.com",
24
+ "CLIENT_ID": "353185966910-cdug7gfeva5anb8u0dgopfc8f7vm3r3l.apps.googleusercontent.com",
25
+ "CLIENT_SECRET": "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",
26
+ "SCOPES": "openid profile email"
27
+ }`
28
+
29
+ # 'name', 'userMessageToken', 'assistantMessageToken' are required
30
+ MODELS=`[{
31
+ "name": "canopy",
32
+ "displayName": "canopy",
33
+ "endpoints": [{
34
+ "type" : "openai",
35
+ "baseURL": "https://canopy-xbis2suaxq-uw.a.run.app/v1"
36
+ }]
37
+ }]`
38
+
39
+ OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
40
+
41
+ #PUBLIC_ORIGIN=${SPACE_HOST}
42
+ #PUBLIC_SHARE_PREFIX=${SPACE_HOST}/r
43
+ APP_BASE="/chat"
44
+ PUBLIC_ORIGIN=https://huggingface.co
45
+ PUBLIC_SHARE_PREFIX=https://hf.co/chat
46
+
47
+ PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
48
+ PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable
49
+ #PUBLIC_ANNOUNCEMENT_BANNERS=`[
50
+ # {
51
+ # "title": "Anthroposphy bot using RAG for high fidelity",
52
+ # "linkTitle": "GitHub repo",
53
+ # "linkHref": "https://github.com/huggingface/chat-ui"
54
+ # }
55
+ #]`
56
+
57
+ PARQUET_EXPORT_DATASET=
58
+ PARQUET_EXPORT_HF_TOKEN=
59
+ PARQUET_EXPORT_SECRET=
60
+
61
+ PUBLIC_APP_NAME=${APP_NAME} # name used as title throughout the app
62
+ PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
63
+ PUBLIC_APP_COLOR=${APP_COLOR} # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
64
+ PUBLIC_APP_DATA_SHARING=#set to 1 to enable disclaimers & options about data sharing
65
+ PUBLIC_APP_DATA_DISCLAIMER=#set to 1 to enable disclaimers about model output