你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AIInferenceModelFactory.ModelInfo(String, ModelType, String) Method

Definition

Initializes a new instance of ModelInfo.

public static Azure.AI.Inference.ModelInfo ModelInfo (string modelName = default, Azure.AI.Inference.ModelType modelType = default, string modelProviderName = default);
static member ModelInfo : string * Azure.AI.Inference.ModelType * string -> Azure.AI.Inference.ModelInfo
Public Shared Function ModelInfo (Optional modelName As String = Nothing, Optional modelType As ModelType = Nothing, Optional modelProviderName As String = Nothing) As ModelInfo

Parameters

modelName
String

The name of the AI model. For example: Phi21.

modelType
ModelType

The type of the AI model. A Unique identifier for the profile.

modelProviderName
String

The model provider name. For example: Microsoft Research.

Returns

A new ModelInfo instance for mocking.

Applies to