@azure-rest/ai-inference package
介面
類型別名
ChatCompletionsResponseFormat |
表示模型必須輸出的格式。 使用此選項可啟用 JSON 模式,而不是預設文字模式。 請注意,若要啟用 JSON 模式,某些 AI 模型可能也需要指示模型透過系統或使用者訊息產生 JSON。 |
ChatCompletionsToolChoicePreset |
ChatCompletionsToolChoicePreset 的別名 |
ChatMessageContentItem |
聊天訊息內結構化內容專案的抽象表示法。 |
ChatMessageImageDetailLevel |
ChatMessageImageDetailLevel 的別名 |
ChatRequestMessage |
要求中提供的聊天訊息抽象表示法。 |
ChatRole |
ChatRole 的別名 |
ChatRoleOutput |
ChatRoleOutput 的別名 |
CompletionsFinishReasonOutput |
CompletionsFinishReasonOutput 的別名 |
EmbeddingEncodingFormat |
EmbeddingEncodingFormat 的別名 |
EmbeddingInputType |
EmbeddingInputType 的別名 |
ExtraParameters |
ExtraParameters 的別名 |
GetChatCompletionsParameters | |
GetEmbeddingsParameters | |
GetImageEmbeddingsParameters | |
GetModelInfoParameters | |
ModelClient | |
ModelTypeOutput |
ModelTypeOutput 的別名 |
函式
函式詳細資料
default(string, TokenCredential | KeyCredential, ModelClientOptions)
初始化 ModelClient
的新實例
function default(endpointParam: string, credentials: TokenCredential | KeyCredential, options?: ModelClientOptions): ModelClient
參數
- endpointParam
-
string
參數 endpointParam
- credentials
唯一識別客戶端認證
- options
- ModelClientOptions
所有選擇性參數的參數
傳回
isUnexpected(GetChatCompletions200Response | GetChatCompletionsDefaultResponse)
function isUnexpected(response: GetChatCompletions200Response | GetChatCompletionsDefaultResponse): response
參數
傳回
response
isUnexpected(GetModelInfo200Response | GetModelInfoDefaultResponse)
function isUnexpected(response: GetModelInfo200Response | GetModelInfoDefaultResponse): response
參數
傳回
response
isUnexpected(GetEmbeddings200Response | GetEmbeddingsDefaultResponse)
function isUnexpected(response: GetEmbeddings200Response | GetEmbeddingsDefaultResponse): response
參數
傳回
response
isUnexpected(GetImageEmbeddings200Response | GetImageEmbeddingsDefaultResponse)
function isUnexpected(response: GetImageEmbeddings200Response | GetImageEmbeddingsDefaultResponse): response
參數
傳回
response