feat: support gemini-pro-vision

This commit is contained in:
Hk-Gosuto
2024-02-18 10:56:01 +08:00
parent 5c389db596
commit e62b4c15e4
4 changed files with 52 additions and 14 deletions

View File

@@ -91,7 +91,7 @@ export const Azure = {
export const Google = {
ExampleEndpoint: "https://generativelanguage.googleapis.com/",
ChatPath: "v1beta/models/gemini-pro:generateContent",
ChatPath: "v1beta/models/{{model}}:generateContent",
};
export const DEFAULT_INPUT_TEMPLATE = `{{input}}`; // input / time / model / lang
@@ -253,6 +253,15 @@ export const DEFAULT_MODELS = [
providerType: "google",
},
},
{
name: "gemini-pro-vision",
available: true,
provider: {
id: "google",
providerName: "Google",
providerType: "google",
},
},
] as const;
export const CHAT_PAGE_SIZE = 15;