Skip to content

Commit

Permalink
chore: updated resource file usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ellvix committed Feb 14, 2024
1 parent 22a19dc commit 8f83a17
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {};
Expand All @@ -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);
Expand Down

0 comments on commit 8f83a17

Please sign in to comment.