mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 23:59:45 +08:00
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.
This commit is contained in:
parent
7bda658022
commit
a12d627b65
@ -317,6 +317,15 @@ export type SystemProvider = Provider & {
|
|||||||
apiOptions?: never
|
apiOptions?: never
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type VertexProvider = Provider & {
|
||||||
|
googleCredentials: {
|
||||||
|
privateKey: string
|
||||||
|
clientEmail: string
|
||||||
|
}
|
||||||
|
project: string
|
||||||
|
location: string
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断是否为系统内置的提供商。比直接使用`provider.isSystem`更好,因为该数据字段不会随着版本更新而变化。
|
* 判断是否为系统内置的提供商。比直接使用`provider.isSystem`更好,因为该数据字段不会随着版本更新而变化。
|
||||||
* @param provider - Provider对象,包含提供商的信息
|
* @param provider - Provider对象,包含提供商的信息
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user