From 8f83a17359bcd8351d36fedeec3b9e33371c3a3f Mon Sep 17 00:00:00 2001 From: ellvix Date: Tue, 13 Feb 2024 20:59:47 -0700 Subject: [PATCH] chore: updated resource file usage --- src/js/constants.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/constants.js b/src/js/constants.js index cc064425..86777b3a 100644 --- a/src/js/constants.js +++ b/src/js/constants.js @@ -1050,10 +1050,9 @@ class ChatLLM { chatLLM.WaitingSound(false); console.log('LLM response: ', data); let text = ''; - let LLMName = ''; + let LLMName = resources.GetString(model); if (model == 'openai') { - LLMName = 'OpenAI'; text = data.choices[0].message.content; let i = this.requestJson.messages.length; this.requestJson.messages[i] = {}; @@ -1066,7 +1065,6 @@ class ChatLLM { chatLLM.DisplayChatMessage(LLMName, text); } } else if (model == 'gemini') { - LLMName = 'Gemini'; if (data.text()) { text = data.text(); chatLLM.DisplayChatMessage(LLMName, text);