mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
Gemini
This commit is contained in:
parent
762264b030
commit
8cd1ea305c
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.',
|
||||
|
|
|
|||
Loading…
Reference in a new issue