From b072057594281d5824da87498e32ce8b14441ab7 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 16 Feb 2024 20:44:54 +0200 Subject: [PATCH] [skip ci] Code format --- src/endpoints/backends/chat-completions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/endpoints/backends/chat-completions.js b/src/endpoints/backends/chat-completions.js index 2898400be..b82a4391d 100644 --- a/src/endpoints/backends/chat-completions.js +++ b/src/endpoints/backends/chat-completions.js @@ -515,8 +515,8 @@ router.post('/status', jsonParser, async function (request, response_getstatus_o api_key_openai = readSecret(SECRET_KEYS.OPENROUTER); // OpenRouter needs to pass the Referer and X-Title: https://openrouter.ai/docs#requests headers = { - 'HTTP-Referer': 'https://sillytavern.app', - 'X-Title': 'SillyTavern' + 'HTTP-Referer': 'https://sillytavern.app', + 'X-Title': 'SillyTavern', }; } else if (request.body.chat_completion_source === CHAT_COMPLETION_SOURCES.MISTRALAI) { api_url = new URL(request.body.reverse_proxy || API_MISTRAL).toString(); @@ -705,8 +705,8 @@ router.post('/generate', jsonParser, function (request, response) { apiKey = readSecret(SECRET_KEYS.OPENROUTER); // OpenRouter needs to pass the Referer and X-Title: https://openrouter.ai/docs#requests headers = { - 'HTTP-Referer': 'https://sillytavern.app', - 'X-Title': 'SillyTavern' + 'HTTP-Referer': 'https://sillytavern.app', + 'X-Title': 'SillyTavern', }; bodyParams = { 'transforms': ['middle-out'] };