Table of Contents

Class AIModelBase

Namespace
FoundationaLLM.Common.Models.ResourceProviders.AIModel
Assembly
FoundationaLLM.Common.dll

Provides a set of standard properties for all AIModel objects.

[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
[JsonDerivedType(typeof(EmbeddingAIModel), "embedding")]
[JsonDerivedType(typeof(CompletionAIModel), "completion")]
[JsonDerivedType(typeof(ImageGenerationAIModel), "image-generation")]
public class AIModelBase : ResourceBase
Inheritance
AIModelBase
Derived
Inherited Members
Extension Methods

Properties

DeploymentName

The name of the deployment corresponding to the AI model.

[JsonPropertyName("deployment_name")]
public string? DeploymentName { get; set; }

Property Value

string

EndpointObjectId

The object id of the APIEndpointConfiguration object providing the configuration for the API endpoint used to interact with the model.

[JsonPropertyName("endpoint_object_id")]
public required string EndpointObjectId { get; set; }

Property Value

string

ModelParameters

Dictionary with default values for the model parameters.

For the list of supported keys, see ModelParametersKeys.

[JsonPropertyName("model_parameters")]
public Dictionary<string, object> ModelParameters { get; set; }

Property Value

Dictionary<string, object>

Type

The type of the resource.

[JsonIgnore]
public override string? Type { get; set; }

Property Value

string

Version

The version of the AI model.

[JsonPropertyName("version")]
public string? Version { get; set; }

Property Value

string