feat: Add support for Google AI (Gemini) as a custom model provider
This commit is contained in:
11
src/models/ChatGoogleAI.ts
Normal file
11
src/models/ChatGoogleAI.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ChatOpenAI } from "@langchain/openai";
|
||||
|
||||
export class ChatGoogleAI extends ChatOpenAI {
|
||||
|
||||
frequencyPenalty: number = undefined;
|
||||
presencePenalty: number = undefined;
|
||||
|
||||
static lc_name() {
|
||||
return "ChatGoogleAI";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user