Update server.js
Browse files
server.js
CHANGED
|
@@ -25,7 +25,7 @@ function authenticateProxyKeyAndModel(req, res, next) {
|
|
| 25 |
const requestedModel = req.body.model;
|
| 26 |
|
| 27 |
// List of allowed models
|
| 28 |
-
const allowedModels = ['gryphe/mythomist-7b', 'gryphe/mythomax-l2-13b'];
|
| 29 |
|
| 30 |
if (providedKey && providedKey === proxyKey && allowedModels.includes(requestedModel)) {
|
| 31 |
// If the provided key matches the expected key and the requested model is allowed, allow the request to proceed
|
|
|
|
| 25 |
const requestedModel = req.body.model;
|
| 26 |
|
| 27 |
// List of allowed models
|
| 28 |
+
const allowedModels = ['gryphe/mythomist-7b', 'gryphe/mythomax-l2-13b' ,'undi95/toppy-m-7b'];
|
| 29 |
|
| 30 |
if (providedKey && providedKey === proxyKey && allowedModels.includes(requestedModel)) {
|
| 31 |
// If the provided key matches the expected key and the requested model is allowed, allow the request to proceed
|