Derive Vertex AI Project ID from Service Account JSON

This commit refactors the Vertex AI integration to automatically derive the
Project ID from the provided Service Account JSON. This simplifies the
configuration process for users in "Full" (service account) authentication
mode by removing the need to specify the Project ID separately.
This commit is contained in:
InterestingDarkness
2025-05-28 21:57:17 +08:00
parent 9f698dd6e3
commit 75e3f599e6
7 changed files with 48 additions and 35 deletions

View File

@@ -44,7 +44,6 @@ export const SECRET_KEYS = {
SERPER: 'api_key_serper',
FALAI: 'api_key_falai',
XAI: 'api_key_xai',
VERTEXAI_PROJECT_ID: 'vertexai_project_id',
VERTEXAI_SERVICE_ACCOUNT: 'vertexai_service_account_json',
};