共用方式為


GetAzureOpenAIClientOptions interface

用於獲取 Azure OpenAI 用戶端的選項。

Extends

繼承的屬性

apiVersion

創建用戶端時要使用的 Azure OpenAI API 版本。 請參閱表中的 https://learn.microsoft.com/azure/ai-foundry/openai/reference#api-specs「數據平面 - 推理」 行。 如果未提供,則必須改為設置環境變數 OPENAI_API_VERSION

connectionName

與 AI Foundry 專案中 Azure OpenAI 資源的連接的名稱。 如果未提供,則將使用預設的 Azure OpenAI 連接。

connectionOptions

用於 Azure OpenAI 連接的連接選項。

connectionSecretOptions

用於 Azure OpenAI 用戶端的連接機密選項。

繼承的屬性詳細資料

apiVersion

創建用戶端時要使用的 Azure OpenAI API 版本。 請參閱表中的 https://learn.microsoft.com/azure/ai-foundry/openai/reference#api-specs「數據平面 - 推理」 行。 如果未提供,則必須改為設置環境變數 OPENAI_API_VERSION

apiVersion?: string

屬性值

string

繼承自AzureOpenAIClientOptions.apiVersion

connectionName

與 AI Foundry 專案中 Azure OpenAI 資源的連接的名稱。 如果未提供,則將使用預設的 Azure OpenAI 連接。

connectionName?: string

屬性值

string

繼承自AzureOpenAIClientOptions.connectionName

connectionOptions

用於 Azure OpenAI 連接的連接選項。

connectionOptions?: ConnectionsGetOptionalParams

屬性值

繼承自AzureOpenAIClientOptions.connectionOptions

connectionSecretOptions

用於 Azure OpenAI 用戶端的連接機密選項。

connectionSecretOptions?: ConnectionsGetWithCredentialsOptionalParams

屬性值

繼承自AzureOpenAIClientOptions.connectionSecretOptions