[skip ci] Code format

This commit is contained in:
Cohee 2024-02-16 20:44:54 +02:00
parent c06fe6abfc
commit b072057594
1 changed files with 4 additions and 4 deletions

View File

@ -516,7 +516,7 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o
// OpenRouter needs to pass the Referer and X-Title: https://openrouter.ai/docs#requests // OpenRouter needs to pass the Referer and X-Title: https://openrouter.ai/docs#requests
headers = { headers = {
'HTTP-Referer': 'https://sillytavern.app', 'HTTP-Referer': 'https://sillytavern.app',
'X-Title': 'SillyTavern' 'X-Title': 'SillyTavern',
}; };
} else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MISTRALAI) { } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MISTRALAI) {
api_url = new URL(request.body.reverse_proxy || API_MISTRAL).toString(); api_url = new URL(request.body.reverse_proxy || API_MISTRAL).toString();
@ -706,7 +706,7 @@ router.post('/generate', jsonParser, function (request, response) {
// OpenRouter needs to pass the Referer and X-Title: https://openrouter.ai/docs#requests // OpenRouter needs to pass the Referer and X-Title: https://openrouter.ai/docs#requests
headers = { headers = {
'HTTP-Referer': 'https://sillytavern.app', 'HTTP-Referer': 'https://sillytavern.app',
'X-Title': 'SillyTavern' 'X-Title': 'SillyTavern',
}; };
bodyParams = { 'transforms': ['middle-out'] }; bodyParams = { 'transforms': ['middle-out'] };