Update .env.local.template
Browse files- .env.local.template +17 -22
.env.local.template
CHANGED
@@ -20,32 +20,27 @@ OPENID_PROVIDER_URL=https://huggingface.co # for Google, use https://accounts.go
|
|
20 |
|
21 |
|
22 |
# 'name', 'userMessageToken', 'assistantMessageToken' are required
|
|
|
23 |
MODELS=`[
|
24 |
{
|
25 |
-
"name": "
|
26 |
-
"
|
27 |
-
"
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
]
|
40 |
-
"endpoints": [
|
41 |
-
{
|
42 |
-
"type": "tgi",
|
43 |
-
"url": "http://127.0.0.1:8080"
|
44 |
-
}
|
45 |
-
],
|
46 |
-
"parameters": ${MODEL_PARAMS}
|
47 |
}
|
48 |
]`
|
|
|
49 |
OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
|
50 |
|
51 |
PUBLIC_ORIGIN=${SPACE_HOST}
|
|
|
20 |
|
21 |
|
22 |
# 'name', 'userMessageToken', 'assistantMessageToken' are required
|
23 |
+
OPENAI_API_KEY=${OPENAI_API_KEY}
|
24 |
MODELS=`[
|
25 |
{
|
26 |
+
"name": "ling-chatml",
|
27 |
+
"id": "ling-chatml",
|
28 |
+
"parameters": {
|
29 |
+
"temperature": 0.9,
|
30 |
+
"top_p": 0.95,
|
31 |
+
"repetition_penalty": 1.2,
|
32 |
+
"top_k": 50,
|
33 |
+
"truncate": 1000,
|
34 |
+
"max_new_tokens": 1024,
|
35 |
+
"stop": []
|
36 |
+
},
|
37 |
+
"endpoints": [{
|
38 |
+
"type" : "openai",
|
39 |
+
"baseURL": "http://180.184.37.242:8081/v1"
|
40 |
+
}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
]`
|
43 |
+
|
44 |
OLD_MODELS=`[]`# any removed models, `{ name: string, displayName?: string, id?: string }`
|
45 |
|
46 |
PUBLIC_ORIGIN=${SPACE_HOST}
|