File size: 11,598 Bytes
bb1671d
 
 
 
 
 
 
 
efaa40c
c1c5300
 
b20c9f5
bb1671d
49d414f
 
 
 
bb1671d
 
8fda930
 
f86f7e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8fda930
 
d912c3d
8fda930
 
 
 
 
 
 
 
 
 
bb1671d
8fda930
 
 
 
 
 
 
d912c3d
 
8fda930
 
 
 
 
 
 
 
 
 
bb1671d
8fda930
 
 
 
 
 
e506d70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94d6ace
d912c3d
48a5551
d912c3d
94d6ace
 
 
 
 
 
 
 
 
 
 
 
d912c3d
 
8fda930
f86f7e5
39ee67d
f86f7e5
 
 
 
39ee67d
 
 
 
 
 
 
 
 
 
 
f86f7e5
 
 
 
e506d70
d53b33c
 
 
 
e506d70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8fda930
 
 
 
 
 
 
 
 
 
 
 
 
bb1671d
8fda930
 
 
 
 
 
8d879b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d53b33c
 
 
e506d70
 
 
 
 
 
 
 
 
 
 
 
d53b33c
 
e506d70
 
 
d53b33c
 
 
e506d70
 
 
 
 
 
 
 
 
 
 
 
d53b33c
 
e506d70
 
 
d53b33c
 
 
 
8d879b4
 
 
 
 
 
 
 
 
 
 
d53b33c
 
8d879b4
 
8fda930
f87b5e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8d879b4
58b17f7
 
8d879b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0eff74a
d53b33c
 
 
e506d70
 
 
 
 
 
 
 
 
 
 
 
d53b33c
 
e506d70
 
 
d53b33c
 
 
e506d70
8fda930
 
 
 
 
 
 
 
bb1671d
8fda930
 
d53b33c
 
8fda930
 
 
d53b33c
 
 
e506d70
8fda930
 
 
 
 
 
 
 
bb1671d
8fda930
 
d53b33c
 
147ab24
 
 
d53b33c
 
 
147ab24
 
 
 
 
 
 
 
 
 
 
 
d53b33c
 
8fda930
8d879b4
8fda930
bb1671d
c1c5300
48a5551
0a5157a
83664e6
bb1671d
49d414f
b20c9f5
bb1671d
 
 
 
 
 
8e5e80f
bb1671d
8e5e80f
bb1671d
 
 
 
 
 
 
 
 
869a762
bb1671d
 
b99881d
efaa40c
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# Use .env.local to change these variables
# DO NOT EDIT THIS FILE WITH SENSITIVE DATA

MONGODB_URL=${MONGODB_URL}
MONGODB_DB_NAME=chat-ui
MONGODB_DIRECT_CONNECTION=false


COOKIE_NAME=Solatium
HF_ACCESS_TOKEN=

USE_LOCAL_WEBSEARCH=false

#OPENID_CLIENT_ID=${OPENID_CLIENT_ID}
#OPENID_CLIENT_SECRET=${OPENID_CLIENT_SECRET}
#OPENID_SCOPES="openid profile"
#OPENID_PROVIDER_URL=https://huggingface.co



MODELS=`[
  {
    "name": "gpt-4o-mini",
    "displayName": "GPT-4o-mini",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-4o-mini",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${OPENAI_API_KEY}",
      "baseURL": "${ENDPOINT}"
    }]
  },
  {
    "name": "gpt-3.5-turbo-0613",
    "displayName": "GPT-3.5-Turbo",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${OPENAI_API_KEY}",
      "baseURL": "${ENDPOINT}"
    }]
  },
  {
    "name": "net-gpt-3.5-turbo",
    "displayName": "GPT-3.5-Turbo-Browsering",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-3-5-turbo",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${FREEGPT_API_KEY}",
      "baseURL": "https://free.gpt.ge/v1"
    }]
  },
  {
    "name": "gpt-4",
    "displayName": "GPT-4",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-4",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${OPENAI_API_KEY}",
      "baseURL": "${ENDPOINT}"
    }]
  },
  {
    "name": "gpt-4o",
    "displayName": "GPT-4o",
    "modelUrl": "https://platform.openai.com/docs/models/gpt-4o",
    "websiteUrl": "https://openai.com/chatgpt",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${OPENAI_API_KEY}",
      "baseURL": "${ENDPOINT}"
    }]
  },
  {
    "name": "mistralai/Mistral-Nemo-Instruct-2407",
    "displayName": "Mistral-Nemo-Instruct",
    "modelUrl": "https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407",
    "websiteUrl": "https://mistral.ai",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  },
  {
    "name": "microsoft/Phi-3.5-mini-instruct",
    "displayName": "Phi-3.5-mini-instruct",
    "modelUrl": "https://huggingface.co/microsoft/Phi-3.5-mini-instruct",
    "websiteUrl": "https://azure.microsoft.com/en-us/products/phi",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  },
  {
    "name": "dbrx-instruct",
    "displayName": "DBRX-Instruct",
    "modelUrl": "https://huggingface.co/databricks/dbrx-instruct",
    "websiteUrl": "https://www.databricks.com/",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "zephyr-orpo-141b-A35b-v0.1",
    "displayName": "Zephyr-ORPO-141B",
    "modelUrl": "https://huggingface.co/HuggingFaceH4/zephyr-orpo-141b-A35b-v0.1",
    "websiteUrl": "https://huggingface.co/HuggingFaceH4",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "Qwen/Qwen2.5-72B-Instruct",
    "displayName": "Qwen2.5-72B-Instruct",
    "modelUrl": "https://huggingface.co/Qwen/Qwen2.5-72B-Instruct",
    "websiteUrl": "https://huggingface.co/Qwen",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  },
  {
    "name": "01-ai/Yi-1.5-34B-Chat",
    "displayName": "Yi-1.5-34B-Chat",
    "modelUrl": "https://huggingface.co/01-ai/Yi-1.5-34B-Chat",
    "websiteUrl": "https://huggingface.co/01-ai",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  },
  {
    "name": "HuggingFaceH4/starchat2-15b-v0.1",
    "displayName": "StarChat2-15b-v0.1",
    "modelUrl": "https://huggingface.co/HuggingFaceH4/starchat2-15b-v0.1",
    "websiteUrl": "https://huggingface.co/HuggingFaceH4",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  },
  {
    "name": "Mixtral-8x22B-Instruct-v0.1",
    "displayName": "Mixtral-8x22B",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "gemma-2-27b-it",
    "displayName": "Gemma-2-27B",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${VISIONCRAFT_API_KEY}",
      "baseURL": "https://visioncraft.top/v1"
    }]
  },
  {
    "name": "google/gemma-2-9b-it",
    "displayName": "Gemma-2-9B",
    "modelUrl": "https://huggingface.co/google/gemma-2-9b-it",
    "websiteUrl": "https://llama.meta.com",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  },
  {
    "name": "meta-llama/Llama-3.1-70B-Instruct",
    "displayName": "Llama-3.1-70B-Instruct",
    "modelUrl": "https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct",
    "websiteUrl": "https://llama.meta.com",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  },
  {
    "name": "llama-3.1-70b-versatile",
    "displayName": "Llama-3.1-70B-Verstile",
    "modelUrl": "https://huggingface.co/meta-llama/Meta-Llama-3.1-70B",
    "websiteUrl": "https://llama.meta.com",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${GROQ_API_KEY}",
      "baseURL": "https://api.groq.com/openai/v1"
    }]
  },
  {
    "name": "meta-llama/Llama-3.2-3B-Instruct",
    "displayName": "Llama-3.2-3B-Instruct",
    "modelUrl": "https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct",
    "websiteUrl": "https://llama.meta.com",
    "parameters": {
      "temperature": 0.3,
      "top_p": 0.8,
      "repetition_penalty": 0.0,
      "max_tokens": 1024,
      "top_k": 50,
      "truncate": 1000,
      "max_new_tokens": 2048
    },
    "endpoints": [{
      "type" : "openai",
      "apiKey": "${HF_TOKEN}",
      "baseURL": "https://api-inference.huggingface.co/v1"
    }]
  }
]`

OLD_MODELS=`[]`
TASK_MODEL=gpt-3.5-turbo-0613

LLM_SUMMERIZATION=false

#MESSAGES_BEFORE_LOGIN=5

PUBLIC_ORIGIN=${SPACE_HOST}
PUBLIC_SHARE_PREFIX=${SPACE_HOST}/r
PUBLIC_GOOGLE_ANALYTICS_ID=#G-XXXXXXXX / Leave empty to disable
PUBLIC_DEPRECATED_GOOGLE_ANALYTICS_ID=#UA-XXXXXXXX-X / Leave empty to disable
PUBLIC_ANNOUNCEMENT_BANNERS=`[
  {
    "title": "πŸ”Ž Find information quickly with Solatium Search!",
    "linkTitle": "try it",
    "linkHref": "https://ehristoforu-solatium-search.hf.space"
  }
]`

PARQUET_EXPORT_DATASET=
PARQUET_EXPORT_HF_TOKEN=
PARQUET_EXPORT_SECRET=

PUBLIC_APP_NAME=${APP_NAME} # name used as title throughout the app
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.
PUBLIC_APP_ASSETS=chatui # used to find logos & favicons in static/$PUBLIC_APP_ASSETS
PUBLIC_APP_COLOR=${APP_COLOR} # can be any of tailwind colors: https://tailwindcss.com/docs/customizing-colors#default-color-palette
PUBLIC_APP_DATA_SHARING=1#set to 1 to enable disclaimers & options about data sharing
PUBLIC_APP_DATA_DISCLAIMER=1#set to 1 to enable disclaimers about model outputs
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."

ENABLE_ASSISTANTS=true
ENABLE_ASSISTANTS_RAG=true
REQUIRE_FEATURED_ASSISTANTS=true
EXPOSE_API=true