Fix Perplexity generation on neo-server

This commit is contained in:
Cohee 2024-04-21 00:52:03 +03:00
parent 70c4e82b89
commit 15f0e491bf
1 changed files with 1 additions and 1 deletions

View File

@ -899,7 +899,7 @@ router.post('/generate', jsonParser, function (request, response) {
}
} else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.PERPLEXITY) {
apiUrl = API_PERPLEXITY;
apiKey = readSecret(SECRET_KEYS.PERPLEXITY);
apiKey = readSecret(request.user.directories, SECRET_KEYS.PERPLEXITY);
headers = {};
bodyParams = {};
request.body.messages = postProcessPrompt(request.body.messages, 'claude', request.body.char_name, request.body.user_name);