ardasen commited on
Commit
279618a
·
verified ·
1 Parent(s): da08ec2

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -1
server.js CHANGED
@@ -16,7 +16,7 @@ function authenticateProxyKeyAndModel(req, res, next) {
16
  const requestedModel = req.body.model;
17
 
18
  // List of allowed models
19
- const allowedModels = ['gpt-3.5-turbo', 'gpt-4-vision-preview', 'gpt-4o', 'text-moderation-latest', 'gpt-3.5-turbo-1106'];
20
 
21
  if (providedKey && providedKey === proxyKey && allowedModels.includes(requestedModel)) {
22
  // If the provided key matches the expected key and the requested model is allowed, allow the request to proceed
 
16
  const requestedModel = req.body.model;
17
 
18
  // List of allowed models
19
+ const allowedModels = ['gpt-3.5-turbo', 'gpt-4-vision-preview', 'gpt-4o', 'text-moderation-latest', 'gpt-3.5-turbo-1106', 'gpt-4o-2024-08-06'];
20
 
21
  if (providedKey && providedKey === proxyKey && allowedModels.includes(requestedModel)) {
22
  // If the provided key matches the expected key and the requested model is allowed, allow the request to proceed