From a12d627b65acd7a679707720e2a54c3a56a658f2 Mon Sep 17 00:00:00 2001 From: suyao Date: Thu, 28 Aug 2025 12:22:14 +0800 Subject: [PATCH] feat(types): add VertexProvider type for Google Cloud integration Introduced a new VertexProvider type that includes properties for Google credentials and project details, enhancing type safety and support for Google Cloud functionalities. --- src/renderer/src/types/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/renderer/src/types/index.ts b/src/renderer/src/types/index.ts index ae334a2fbc..28c57b004c 100644 --- a/src/renderer/src/types/index.ts +++ b/src/renderer/src/types/index.ts @@ -317,6 +317,15 @@ export type SystemProvider = Provider & { apiOptions?: never } +export type VertexProvider = Provider & { + googleCredentials: { + privateKey: string + clientEmail: string + } + project: string + location: string +} + /** * 判断是否为系统内置的提供商。比直接使用`provider.isSystem`更好,因为该数据字段不会随着版本更新而变化。 * @param provider - Provider对象,包含提供商的信息