From 2d46df4c697ee465c54bf12f33737d0d26583f18 Mon Sep 17 00:00:00 2001 From: Clivia <132346501+Yanyutin753@users.noreply.github.com> Date: Mon, 19 Feb 2024 23:06:12 +0800 Subject: [PATCH] fix constant.ts --- app/constant.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/constant.ts b/app/constant.ts index ad08a2e..577b59e 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -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;