Fix: Construct LmChatGoogleGemini to use the host from googlePalmApi credentials

This commit is contained in:
ww9xlll 2024-09-24 23:09:41 +08:00
parent 46beda05f6
commit 3d448e8448

View file

@ -136,6 +136,7 @@ export class LmChatGoogleGemini implements INodeType {
) as SafetySetting[];
const model = new ChatGoogleGenerativeAI({
baseUrl: credentials.host as string,
apiKey: credentials.apiKey as string,
modelName,
topK: options.topK,