This commit is contained in:
Piyu-Pika 2024-10-31 10:41:04 +05:30
parent 762264b030
commit 8cd1ea305c
2 changed files with 4 additions and 4 deletions

View file

@ -112,9 +112,9 @@ const sendGeminiMsg: SendLLMMessageFnTypeInternal = async ({ messages, onText, o
}
try {
const genAI = new GoogleGenerativeAI(voidConfig.gemini.apikey);
const genAI = new GoogleGenerativeAI(voidConfig.Gemini.apikey);
// Force the model to be exactly what's configured
const modelName = voidConfig.gemini.model;
const modelName = voidConfig.Gemini.model;
const model = genAI.getGenerativeModel({ model: modelName });
// Combine system messages with the first user message

View file

@ -26,7 +26,7 @@ export const configFields = [
'openRouter',
'openAICompatible',
'azure',
'gemini'
'Gemini'
] as const
@ -165,7 +165,7 @@ const voidConfigInfo: Record<
// }
// },
},
gemini: {
Gemini: {
apikey: configString('Google API key.', ''),
model: configEnum(
'Gemini model to use.',