From 083f92b2b2518c52f2fb44004792d4cd04f4ea7c Mon Sep 17 00:00:00 2001 From: Compass <32301767+AliceRabbit@users.noreply.github.com> Date: Sun, 15 Jun 2025 20:26:12 +0800 Subject: [PATCH] Add region option for vertex express mode to access more models (#4155) * add region option for vertex express mode to access more models * add region option for vertex express mode to access more models * fix: Consolidate duplicate 'vertexai_region' input * feat: add vertex region suggestion datalist & update caption endpoint to correctly handle region * Adjust global projectless Vertex endpoint * Remove pointless slash trim * Skill issue --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com> --- public/index.html | 83 ++++++++++++++++------ public/scripts/extensions/shared.js | 1 + public/scripts/openai.js | 13 ++++ src/endpoints/backends/chat-completions.js | 9 ++- src/endpoints/google.js | 11 ++- 5 files changed, 93 insertions(+), 24 deletions(-) diff --git a/public/index.html b/public/index.html index 62e3205fd..069e41ed6 100644 --- a/public/index.html +++ b/public/index.html @@ -3257,19 +3257,38 @@

- - Google Vertex AI API Key + + Google Vertex AI Configuration (Express mode)

-
- - + +
+ +
+ + +
+
+ For privacy reasons, your API key will be hidden after you click 'Connect'. +
-
- For privacy reasons, your API key will be hidden after you click 'Connect'. + +
+ +
+ +
+
+ + `Project ID` is only required when selecting regions other than the default (us-central1).
+ You can find this in a model 404 error message. +
+
@@ -3283,20 +3302,6 @@ - - -
- - -
-
@@ -3316,12 +3321,48 @@
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+

Google Model