+
Service Account Configuration
@@ -3293,8 +3293,8 @@
Paste the complete JSON content of your Google Cloud Service Account key file. The content will be stored securely.
-
-
+
+
@@ -3317,14 +3317,14 @@
-
+
gemini-2.5-pro-preview-05-06
gemini-2.5-pro-preview-03-25
gemini-2.5-pro-exp-03-25
gemini-2.5-flash-preview-05-20
gemini-2.5-flash-preview-04-17
-
+
gemini-2.0-flash-001
gemini-2.0-flash-exp
gemini-2.0-flash-preview-image-generation
diff --git a/public/scripts/openai.js b/public/scripts/openai.js
index 23fbdeadd..4281494a6 100644
--- a/public/scripts/openai.js
+++ b/public/scripts/openai.js
@@ -5521,20 +5521,11 @@ function onVertexAIAuthModeChange() {
const authMode = String($(this).val());
oai_settings.vertexai_auth_mode = authMode;
- // Show/hide appropriate configuration sections
- if (authMode === 'express') {
- $('#vertexai_express_config').show();
- $('#vertexai_full_config').hide();
- // Show express mode model groups and hide full version model groups
- $('#model_vertexai_select optgroup[data-mode="express"]').show();
- $('#model_vertexai_select optgroup[data-mode="full"]').hide();
- } else {
- $('#vertexai_express_config').hide();
- $('#vertexai_full_config').show();
- // Hide express mode model groups and show full version model groups
- $('#model_vertexai_select optgroup[data-mode="express"]').hide();
- $('#model_vertexai_select optgroup[data-mode="full"]').show();
- }
+ $('#vertexai_form [data-mode]').each(function () {
+ const mode = $(this).data('mode');
+ $(this).toggle(mode === authMode);
+ $(this).find('option').toggle(mode === authMode);
+ });
saveSettingsDebounced();
}