Builder

class Builder

Fluent builder for Gemini, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

构造函数(Constructors)

Link copied to clipboard
constructor()

函数

Link copied to clipboard

用于设置 Google AI API 密钥;最多只能设置其中一个。 客户端,以及 vertexCredentials.

Link copied to clipboard
fun build(): Gemini

构建(Builds the) Gemini 如果未设置客户端或 Vertex AI 的凭据,则会使用 Google AI API 密钥来加载模型。

Link copied to clipboard
fun client(client: Client?): Gemini.Builder

用于设置 SDK 客户端;最多只能设置其中一个选项。 apiKey,以及 vertexCredentials.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

用于设置 Vertex AI 的认证信息;最多只能设置其中一项。 客户端,以及 apiKey.