ehristoforu commited on
Commit
f8d79a9
1 Parent(s): 5995f7a

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -3
  2. env.local.template +429 -0
Dockerfile CHANGED
@@ -39,7 +39,6 @@ RUN --mount=type=secret,id=ENDPOINT,mode=0444 \
39
  ENDPOINT=$(cat /run/secrets/ENDPOINT) && export ENDPOINT && echo "${ENDPOINT}" >> "/defaults/.endpoint" && cat /defaults/.endpoint
40
 
41
 
42
-
43
  RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
44
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
45
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
@@ -53,8 +52,6 @@ RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
53
  && FREEGPT_API_KEY=$(cat /defaults/.freegpt.key) && export FREEGPT_API_KEY && echo "${FREEGPT_API_KEY}" \
54
  && GROQ_API_KEY=$(cat /defaults/.groq.key) && export GROQ_API_KEY && echo "${GROQ_API_KEY}" \
55
  && VISIONCRAFT_API_KEY=$(cat /defaults/.visioncraft.key) && export VISIONCRAFT_API_KEY && echo "${VISIONCRAFT_API_KEY}" \
56
- && OPENID_CLIENT_ID=$(cat /defaults/.openid.client_id) && export OPENID_CLIENT_ID && echo "${OPENID_CLIENT_ID}" \
57
- && OPENID_CLIENT_SECRET=$(cat /defaults/.openid.client_secret) && export OPENID_CLIENT_SECRET && echo "${OPENID_CLIENT_SECRET}" \
58
  && envsubst < ".env.local.template" > ".env.local" \
59
  && rm .env.local.template && cat .env.local
60
 
 
39
  ENDPOINT=$(cat /run/secrets/ENDPOINT) && export ENDPOINT && echo "${ENDPOINT}" >> "/defaults/.endpoint" && cat /defaults/.endpoint
40
 
41
 
 
42
  RUN --mount=type=secret,id=MONGODB_URL,mode=0444 \
43
  MODEL_NAME="${MODEL_NAME:="$(cat /defaults/MODEL_NAME)"}" && export MODEL_NAME \
44
  && MODEL_PARAMS="${MODEL_PARAMS:="$(cat /defaults/MODEL_PARAMS)"}" && export MODEL_PARAMS \
 
52
  && FREEGPT_API_KEY=$(cat /defaults/.freegpt.key) && export FREEGPT_API_KEY && echo "${FREEGPT_API_KEY}" \
53
  && GROQ_API_KEY=$(cat /defaults/.groq.key) && export GROQ_API_KEY && echo "${GROQ_API_KEY}" \
54
  && VISIONCRAFT_API_KEY=$(cat /defaults/.visioncraft.key) && export VISIONCRAFT_API_KEY && echo "${VISIONCRAFT_API_KEY}" \
 
 
55
  && envsubst < ".env.local.template" > ".env.local" \
56
  && rm .env.local.template && cat .env.local
57
 
env.local.template ADDED
@@ -0,0 +1,429 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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=HuggingGPT
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=
17
+ OPENID_CLIENT_SECRET=
18
+ OPENID_SCOPES="openid profile" # 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
+
21
+
22
+ MODELS=`[
23
+ {
24
+ "name": "gpt-3.5-turbo",
25
+ "displayName": "GPT-3.5-Turbo",
26
+ "logoUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/04/ChatGPT_logo.svg/1200px-ChatGPT_logo.svg.png",
27
+ "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
28
+ "websiteUrl": "https://openai.com/chatgpt",
29
+ "parameters": {
30
+ "temperature": 0.3,
31
+ "top_p": 0.8,
32
+ "repetition_penalty": 0.0,
33
+ "max_tokens": 1024,
34
+ "top_k": 50,
35
+ "truncate": 1000,
36
+ "max_new_tokens": 2048
37
+ },
38
+ "endpoints": [{
39
+ "type" : "openai",
40
+ "apiKey": "${OPENAI_API_KEY}",
41
+ "baseURL": "${ENDPOINT}"
42
+ }]
43
+ },
44
+ {
45
+ "name": "gpt-3.5-turbo-0613",
46
+ "displayName": "GPT-3.5-Turbo-0613",
47
+ "logoUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAhFBMVEUAAAD////29vZOTk4tLS1LS0spKSnc3Nz5+fn8/PzBwcHp6enz8/Pk5OTt7e3Pz89paWlWVla2traKiopiYmLJyckNDQ0gICCpqamBgYFBQUGwsLChoaHNzc3Y2Nh6eno1NTWQkJBubm4ZGRmWlpZEREQyMjIhISF9fX08PDxlZWUSEhItfJutAAAOoUlEQVR4nO1d55riOgwNoYQEmND7DG3qzvu/36UMIMmy7MQOAb57/u0OBJ+4qMtBhaKZLlc/k3HwaBhP5qtl2lT4BIRe0i17pI7oJk2BYTytlT1AD2gsYx3DZFL24DzhN2EZho++PiG6ocoweoYFekUjogzTsofkHSlm+HwELxRPDKOyR1MIoivDsFH2YApBLbwwfKZTFOLfmWFS9kgKQ3JiGO/KHkhhmMRHhtOyx1EgpgeGzecS9Ri15p7h8+7CA5I9w2c9SE/oVoJm2WMoGM3gGfU1iDRYlj2EgrEMVmUPoWCsgp+yh1Aw5sGzeC50mASP5zbMhmfn9z984LO6HSz7SdLvLwfb6rrs4XjGcJN2sAe62Uk3w7KH5Qtb6l6/0ky2ZQ/OHfO+ht0Z/XnZQ3RCNzXwOzowH9eo6UVmekdEvbKHmguNV0t+B4we0EU0y8DvgEHZA86Ims0GxHh9KG/0MDQzUhA+0G7c5OB3wKzsgdtioSHQbkWjfj95jVptzScexGObcGPv9FfV63n51ZslLe5j/RLHbY0RM3lTTnGpT2OB4ni3u1OLTp3BSK98fnfUhdpbJtHloGq/JcvefR2yU4WfrJOtVI4qokX3buZzRcYWmwX50oLifjKT+5AlazKuN5sFtraZxj1a96D2kPPR9vDXiReKcPNb6PAzj9Tax/xuyXC/WMtVCnp4NLZOitWLNcE9oo9COcjAa7Rq96W65S68orwAywaNw85wb5icHOw0fhbMRAfkb9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pt-3-5-turbo",
49
+ "websiteUrl": "https://openai.com/chatgpt",
50
+ "parameters": {
51
+ "temperature": 0.3,
52
+ "top_p": 0.8,
53
+ "repetition_penalty": 0.0,
54
+ "max_tokens": 1024,
55
+ "top_k": 50,
56
+ "truncate": 1000,
57
+ "max_new_tokens": 2048
58
+ },
59
+ "endpoints": [{
60
+ "type" : "openai",
61
+ "apiKey": "${OPENAI_API_KEY}",
62
+ "baseURL": "${ENDPOINT}"
63
+ }]
64
+ },
65
+ {
66
+ "name": "gpt-3.5-turbo-0125",
67
+ "displayName": "GPT-3.5-Turbo-0125",
68
+ "logoUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRko-LT_4JHX2nVrtmqa4rNoVY5nZYT8IlKRw&s",
69
+ "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
70
+ "websiteUrl": "https://openai.com/chatgpt",
71
+ "parameters": {
72
+ "temperature": 0.3,
73
+ "top_p": 0.8,
74
+ "repetition_penalty": 0.0,
75
+ "max_tokens": 1024,
76
+ "top_k": 50,
77
+ "truncate": 1000,
78
+ "max_new_tokens": 2048
79
+ },
80
+ "endpoints": [{
81
+ "type" : "openai",
82
+ "apiKey": "${FREEGPT_API_KEY}",
83
+ "baseURL": "https://free.gpt.ge/v1"
84
+ }]
85
+ },
86
+ {
87
+ "name": "gpt-3.5-turbo-1106",
88
+ "displayName": "GPT-3.5-Turbo-1106",
89
+ "logoUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQR5OxjPZIjkJcJYBERpy1as9vm_eOrohdyEw&s",
90
+ "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
91
+ "websiteUrl": "https://openai.com/chatgpt",
92
+ "parameters": {
93
+ "temperature": 0.3,
94
+ "top_p": 0.8,
95
+ "repetition_penalty": 0.0,
96
+ "max_tokens": 1024,
97
+ "top_k": 50,
98
+ "truncate": 1000,
99
+ "max_new_tokens": 2048
100
+ },
101
+ "endpoints": [{
102
+ "type" : "openai",
103
+ "apiKey": "${FREEGPT_API_KEY}",
104
+ "baseURL": "https://free.gpt.ge/v1"
105
+ }]
106
+ },
107
+ {
108
+ "name": "net-gpt-3.5-turbo",
109
+ "displayName": "GPT-3.5-Turbo-Browsering",
110
+ "logoUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSOFDjKWYHuKk1c4MSfizq5pdzrohJnTfrSbA&s",
111
+ "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
112
+ "websiteUrl": "https://openai.com/chatgpt",
113
+ "parameters": {
114
+ "temperature": 0.3,
115
+ "top_p": 0.8,
116
+ "repetition_penalty": 0.0,
117
+ "max_tokens": 1024,
118
+ "top_k": 50,
119
+ "truncate": 1000,
120
+ "max_new_tokens": 2048
121
+ },
122
+ "endpoints": [{
123
+ "type" : "openai",
124
+ "apiKey": "${FREEGPT_API_KEY}",
125
+ "baseURL": "https://free.gpt.ge/v1"
126
+ }]
127
+ },
128
+ {
129
+ "name": "gpt-4-turbo",
130
+ "displayName": "Gemini Pro",
131
+ "logoUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABI1BMVEX///8boeM5ktpCjtdnfMxShtJGjNY4k9pMidQ+kNhWhNFjfs1agtBgf85egM9DjdeRaMBressxltxxd8krmd52dchqest8csZweMqAcMUjneGEbsSHbcN+ccWKa8IAnOKJXLwfjNiNYr7R1u5ec8n19fsAld6Vodns7vhhbsd8sOPW6Pd9ZsGz2vTl3O+2ndRwveuLyO7b0Oo/rOauktBDfM/K4PSuteB1g89Za8dMYcPCyOh6itG0vuRWcMmEk9SVp9xxkdWgqt12mtjKz+uPmdZ9o9w/ftCrst+duuXIy+m70e1fndyio9lxq+GHhc1tZsOIesnBuOCbhczQ6PeGxu3k8vvFst2adcV/S7fTxeWp1vKcjs9Ys+iIn9lkm9sAgta5NACVAAAKz0lEQVR4nN2de1saRxTGYV1EQEBQ0GAiIrsrKCWJBj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UXZhVA/kTfb4oQQBtG9DQULYSZTQIygRGhnZrpaBIQFxxRRjHZmJu+T4A7vJUWsSxuhcTJM5QyYoC+PrlF3+u4paPpQdZhUoGpv6arqKIai5RkgteMk5L2eGLRXtW1D4fIM1FHHHkKh+hlLVfsUkfdiYtFeVWyTmjYV2aSg/RbcpMCmC1a5F9Okuk3FNmlGfbSOFam/q8DpQ0HUntTSZccIoQC3MRjtm4TCjEm9MkfdvJcRoz7qxTDtt74kgY0o9DaEFVG4OalLagdeqQlbDaHqkmiTYLf2BG5KDf3bkTpz/KUgDgKpRuhEk8l86Qg4CnZK7I4G6oPABwtDe8n9c8YR6VLong3qiv+fbIxZR4IXC3iPKHixyKiPvFcQu0S8VnMqHV9rh5HIIwxDcy+H/wNdgsV4z0smaAAAAABJRU5ErkJggg==",
132
+ "modelUrl": "https://gemini.google.com",
133
+ "websiteUrl": "https://blog.google/technology/ai/google-gemini-ai",
134
+ "parameters": {
135
+ "temperature": 0.3,
136
+ "top_p": 0.8,
137
+ "repetition_penalty": 0.0,
138
+ "max_tokens": 1024,
139
+ "top_k": 50,
140
+ "truncate": 1000,
141
+ "max_new_tokens": 2048
142
+ },
143
+ "endpoints": [{
144
+ "type" : "openai",
145
+ "apiKey": "${GEMINI_API_KEY}",
146
+ "baseURL": "https://gemini-openai-proxy.deno.dev/v1"
147
+ }]
148
+ },
149
+ {
150
+ "name": "claude-3-sonnet",
151
+ "displayName": "Claude-3-Sonnet",
152
+ "modelUrl": "https://claude.ai",
153
+ "websiteUrl": "https://claude.ai",
154
+ "parameters": {
155
+ "temperature": 0.3,
156
+ "top_p": 0.8,
157
+ "repetition_penalty": 0.0,
158
+ "max_tokens": 1024,
159
+ "top_k": 50,
160
+ "truncate": 1000,
161
+ "max_new_tokens": 2048
162
+ },
163
+ "endpoints": [{
164
+ "type" : "openai",
165
+ "apiKey": "${VISIONCRAFT_API_KEY}",
166
+ "baseURL": "https://visioncraft.top/v1"
167
+ }]
168
+ },
169
+ {
170
+ "name": "claude-3-haiku",
171
+ "displayName": "Claude-3-Haiku",
172
+ "modelUrl": "https://claude.ai",
173
+ "websiteUrl": "https://claude.ai",
174
+ "parameters": {
175
+ "temperature": 0.3,
176
+ "top_p": 0.8,
177
+ "repetition_penalty": 0.0,
178
+ "max_tokens": 1024,
179
+ "top_k": 50,
180
+ "truncate": 1000,
181
+ "max_new_tokens": 2048
182
+ },
183
+ "endpoints": [{
184
+ "type" : "openai",
185
+ "apiKey": "${VISIONCRAFT_API_KEY}",
186
+ "baseURL": "https://visioncraft.top/v1"
187
+ }]
188
+ },
189
+ {
190
+ "name": "claude-instant-100k",
191
+ "displayName": "Claude-Instant-100K",
192
+ "modelUrl": "https://claude.ai",
193
+ "websiteUrl": "https://claude.ai",
194
+ "parameters": {
195
+ "temperature": 0.3,
196
+ "top_p": 0.8,
197
+ "repetition_penalty": 0.0,
198
+ "max_tokens": 1024,
199
+ "top_k": 50,
200
+ "truncate": 1000,
201
+ "max_new_tokens": 2048
202
+ },
203
+ "endpoints": [{
204
+ "type" : "openai",
205
+ "apiKey": "${VISIONCRAFT_API_KEY}",
206
+ "baseURL": "https://visioncraft.top/v1"
207
+ }]
208
+ },
209
+ {
210
+ "name": "claude-instant",
211
+ "displayName": "Claude-Instant",
212
+ "modelUrl": "https://claude.ai",
213
+ "websiteUrl": "https://claude.ai",
214
+ "parameters": {
215
+ "temperature": 0.3,
216
+ "top_p": 0.8,
217
+ "repetition_penalty": 0.0,
218
+ "max_tokens": 1024,
219
+ "top_k": 50,
220
+ "truncate": 1000,
221
+ "max_new_tokens": 2048
222
+ },
223
+ "endpoints": [{
224
+ "type" : "openai",
225
+ "apiKey": "${VISIONCRAFT_API_KEY}",
226
+ "baseURL": "https://visioncraft.top/v1"
227
+ }]
228
+ },
229
+ {
230
+ "name": "dbrx-instruct",
231
+ "displayName": "DBRX-Instruct",
232
+ "modelUrl": "https://huggingface.co/databricks/dbrx-instruct",
233
+ "websiteUrl": "https://www.databricks.com/",
234
+ "parameters": {
235
+ "temperature": 0.3,
236
+ "top_p": 0.8,
237
+ "repetition_penalty": 0.0,
238
+ "max_tokens": 1024,
239
+ "top_k": 50,
240
+ "truncate": 1000,
241
+ "max_new_tokens": 2048
242
+ },
243
+ "endpoints": [{
244
+ "type" : "openai",
245
+ "apiKey": "${VISIONCRAFT_API_KEY}",
246
+ "baseURL": "https://visioncraft.top/v1"
247
+ }]
248
+ },
249
+ {
250
+ "name": "llama3-70b-8192",
251
+ "displayName": "Llama3-70B",
252
+ "description": "Generation over generation, Meta Llama 3 demonstrates state-of-the-art performance on a wide range of industry benchmarks and offers new capabilities, including improved reasoning.",
253
+ "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/meta-logo.png",
254
+ "modelUrl": "https://huggingface.co/meta-llama/Meta-Llama-3-70B",
255
+ "websiteUrl": "https://llama.meta.com/llama3",
256
+ "parameters": {
257
+ "temperature": 0.3,
258
+ "top_p": 0.8,
259
+ "repetition_penalty": 0.0,
260
+ "max_tokens": 1024,
261
+ "top_k": 50,
262
+ "truncate": 1000,
263
+ "max_new_tokens": 2048
264
+ },
265
+ "endpoints": [{
266
+ "type" : "openai",
267
+ "apiKey": "${GROQ_API_KEY}",
268
+ "baseURL": "https://api.groq.com/openai/v1"
269
+ }]
270
+ },
271
+ {
272
+ "name": "llama3-8b-8192",
273
+ "displayName": "Llama3-8B",
274
+ "description": "Generation over generation, Meta Llama 3 demonstrates state-of-the-art performance on a wide range of industry benchmarks and offers new capabilities, including improved reasoning.",
275
+ "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/meta-logo.png",
276
+ "modelUrl": "https://huggingface.co/meta-llama/Meta-Llama-3-8B",
277
+ "websiteUrl": "https://llama.meta.com/llama3",
278
+ "parameters": {
279
+ "temperature": 0.3,
280
+ "top_p": 0.8,
281
+ "repetition_penalty": 0.0,
282
+ "max_tokens": 1024,
283
+ "top_k": 50,
284
+ "truncate": 1000,
285
+ "max_new_tokens": 2048
286
+ },
287
+ "endpoints": [{
288
+ "type" : "openai",
289
+ "apiKey": "${GROQ_API_KEY}",
290
+ "baseURL": "https://api.groq.com/openai/v1"
291
+ }]
292
+ },
293
+ {
294
+ "name": "llama2-70b-4096",
295
+ "displayName": "Llama2-70B",
296
+ "description": "Generation over generation, Meta Llama 2 demonstrates state-of-the-art performance on a wide range of industry benchmarks and offers new capabilities, including improved reasoning.",
297
+ "logoUrl": "https://pl-public-data.s3.amazonaws.com/assets_lightning/Lit_LLaMA_Badge3x.png",
298
+ "modelUrl": "https://huggingface.co/meta-llama/Llama-2-70b",
299
+ "websiteUrl": "https://llama.meta.com/llama2",
300
+ "parameters": {
301
+ "temperature": 0.3,
302
+ "top_p": 0.8,
303
+ "repetition_penalty": 0.0,
304
+ "max_tokens": 1024,
305
+ "top_k": 50,
306
+ "truncate": 1000,
307
+ "max_new_tokens": 2048
308
+ },
309
+ "endpoints": [{
310
+ "type" : "openai",
311
+ "apiKey": "${GROQ_API_KEY}",
312
+ "baseURL": "https://api.groq.com/openai/v1"
313
+ }]
314
+ },
315
+ {
316
+ "name": "mixtral-8x7b-32768",
317
+ "displayName": "Mixtral-8x7B",
318
+ "description" : "The latest MoE model from Mistral AI! 8x7B and outperforms Llama 2 70B in most benchmarks.",
319
+ "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/mistral-logo.png",
320
+ "websiteUrl" : "https://mistral.ai/news/mixtral-of-experts",
321
+ "modelUrl": "https://huggingface.co/mistralai/Mixtral-8x7B-v0.1",
322
+ "parameters": {
323
+ "temperature": 0.3,
324
+ "top_p": 0.8,
325
+ "repetition_penalty": 0.0,
326
+ "max_tokens": 1024,
327
+ "top_k": 50,
328
+ "truncate": 1000,
329
+ "max_new_tokens": 2048
330
+ },
331
+ "endpoints": [{
332
+ "type" : "openai",
333
+ "apiKey": "${GROQ_API_KEY}",
334
+ "baseURL": "https://api.groq.com/openai/v1"
335
+ }]
336
+ },
337
+ {
338
+ "name": "Mixtral-8x22B-Instruct-v0.1",
339
+ "displayName": "Mixtral-8x22B",
340
+ "description" : "The latest MoE model from Mistral AI! 8x22B and outperforms Llama 3 8B in most benchmarks.",
341
+ "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/mistral-logo.png",
342
+ "websiteUrl" : "https://mistral.ai/news/mixtral-of-experts",
343
+ "modelUrl": "https://huggingface.co/mistralai/Mixtral-8x22B-v0.1",
344
+ "parameters": {
345
+ "temperature": 0.3,
346
+ "top_p": 0.8,
347
+ "repetition_penalty": 0.0,
348
+ "max_tokens": 1024,
349
+ "top_k": 50,
350
+ "truncate": 1000,
351
+ "max_new_tokens": 2048
352
+ },
353
+ "endpoints": [{
354
+ "type" : "openai",
355
+ "apiKey": "${VISIONCRAFT_API_KEY}",
356
+ "baseURL": "https://visioncraft.top/v1"
357
+ }]
358
+ },
359
+ {
360
+ "name": "zephyr-orpo-141b-A35b-v0.1",
361
+ "displayName": "Zephyr-Orpo-141B-A35B"
362
+ "description": "Zephyr 141B-A35B is a fine-tuned version of Mistral 8x22B, trained using ORPO, a novel alignment algorithm.",
363
+ "modelUrl": "https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1",
364
+ "websiteUrl": "https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1",
365
+ "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/zephyr-logo.png",
366
+ "parameters": {
367
+ "temperature": 0.3,
368
+ "top_p": 0.8,
369
+ "repetition_penalty": 0.0,
370
+ "max_tokens": 1024,
371
+ "top_k": 50,
372
+ "truncate": 1000,
373
+ "max_new_tokens": 2048
374
+ },
375
+ "endpoints": [{
376
+ "type" : "openai",
377
+ "apiKey": "${VISIONCRAFT_API_KEY}",
378
+ "baseURL": "https://visioncraft.top/v1"
379
+ }]
380
+ },
381
+ {
382
+ "name": "gemma-7b-it",
383
+ "displayName": "Gemma-7B-IT",
384
+ "description": "Gemma 7B 1.1 is the latest release in the Gemma family of lightweight models built by Google, trained using a novel RLHF method.",
385
+ "websiteUrl" : "https://blog.google/technology/developers/gemma-open-models/",
386
+ "logoUrl": "https://huggingface.co/datasets/huggingchat/models-logo/resolve/main/google-logo.png",
387
+ "modelUrl": "https://huggingface.co/google/gemma-1.1-7b-it",
388
+ "parameters": {
389
+ "temperature": 0.3,
390
+ "top_p": 0.8,
391
+ "repetition_penalty": 0.0,
392
+ "max_tokens": 1024,
393
+ "top_k": 50,
394
+ "truncate": 1000,
395
+ "max_new_tokens": 2048
396
+ },
397
+ "endpoints": [{
398
+ "type" : "openai",
399
+ "apiKey": "${GROQ_API_KEY}",
400
+ "baseURL": "https://api.groq.com/openai/v1"
401
+ }]
402
+ }
403
+ ]`
404
+
405
+ OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
406
+
407
+ PUBLIC_ORIGIN=${SPACE_HOST}
408
+ PUBLIC_SHARE_PREFIX=${SPACE_HOST}/r
409
+ PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
410
+ PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable
411
+ PUBLIC_ANNOUNCEMENT_BANNERS=`[
412
+ {
413
+ "title": "🦾 Claude-3-Sonnet is now available for free!",
414
+ "linkTitle": "try it",
415
+ "linkHref": "/chat?model=claude-3-sonnet"
416
+ }
417
+ ]`
418
+
419
+ PARQUET_EXPORT_DATASET=
420
+ PARQUET_EXPORT_HF_TOKEN=
421
+ PARQUET_EXPORT_SECRET=
422
+
423
+ PUBLIC_APP_NAME=${APP_NAME} # name used as title throughout the app
424
+ PUBLIC_APP_DESCRIPTION=We provide free access to the latest AI models. There is a possibility that some models may be temporarily unavailable, in which case please select another model.
425
+ PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
426
+ PUBLIC_APP_COLOR=${APP_COLOR} # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
427
+ PUBLIC_APP_DATA_SHARING=1#set to 1 to enable disclaimers & options about data sharing
428
+ PUBLIC_APP_DATA_DISCLAIMER1=#set to 1 to enable disclaimers about model outputs
429
+ PUBLIC_APP_DISCLAIMER_MESSAGE="Disclaimer: AI is an area of active research with known problems such as biased generation and misinformation. Do not use this application for high-stakes decisions or advice. Do not insert your personal data, especially sensitive, like health data."