Language

AzureAIProjectsModelFactory.ModelVersion Method

Definition

Model Version Definition.

public static Azure.AI.Projects.ModelVersion ModelVersion(Uri blobUri = default, Azure.AI.Projects.FoundryModelWeightType? weightType = default, string baseModel = default, Azure.AI.Projects.ModelSourceData source = default, Azure.AI.Projects.LoraConfig loraConfig = default, Azure.AI.Projects.ArtifactProfile artifactProfile = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.FoundryModelWarning> warnings = default, string id = default, string name = default, string version = default, string description = default, System.Collections.Generic.IDictionary<string,string> tags = default);
static member ModelVersion : Uri * Nullable<Azure.AI.Projects.FoundryModelWeightType> * string * Azure.AI.Projects.ModelSourceData * Azure.AI.Projects.LoraConfig * Azure.AI.Projects.ArtifactProfile * seq<Azure.AI.Projects.FoundryModelWarning> * string * string * string * string * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.Projects.ModelVersion
Public Shared Function ModelVersion (Optional blobUri As Uri = Nothing, Optional weightType As Nullable(Of FoundryModelWeightType) = Nothing, Optional baseModel As String = Nothing, Optional source As ModelSourceData = Nothing, Optional loraConfig As LoraConfig = Nothing, Optional artifactProfile As ArtifactProfile = Nothing, Optional warnings As IEnumerable(Of FoundryModelWarning) = Nothing, Optional id As String = Nothing, Optional name As String = Nothing, Optional version As String = Nothing, Optional description As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing) As ModelVersion

Parameters

blobUri
Uri

URI of the model artifact in blob storage.

weightType
Nullable<FoundryModelWeightType>

The weight type of the model.

baseModel
String

Base model asset ID.

source
ModelSourceData

The source of the model.

loraConfig
LoraConfig

Adapter-specific configuration. Required when weight_type is lora; ignored otherwise. May be auto-populated from adapter_config.json when present in the uploaded files — user-provided values take precedence over auto-detected values.

artifactProfile
ArtifactProfile

The artifact profile of the model.

warnings
IEnumerable<FoundryModelWarning>

Service-computed advisory warnings derived from the artifact profile.

id
String

Asset ID, a unique identifier for the asset.

name
String

The name of the resource.

version
String

The version of the resource.

description
String

The asset description text.

tags
IDictionary<String,String>

Tag dictionary. Tags can be added, removed, and updated.

Returns

A new ModelVersion instance for mocking.

Applies to