Search Results for

    Show / Hide Table of Contents

    Class BaseModelInfo

    Holds identifying information about the base model that a fine-tuned model was derived from. Used to trace the lineage of custom models back to their original foundation model.

    Inheritance
    object
    BaseModelInfo
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [JsonObject]
    public class BaseModelInfo

    Constructors

    | Edit this page View Source

    BaseModelInfo(string, string, string)

    Declaration
    public BaseModelInfo(string baseId, string name, string version)
    Parameters
    Type Name Description
    string baseId
    string name
    string version

    Properties

    | Edit this page View Source

    BaseId

    The ID of the original base model this fine-tuned model was derived from (e.g. "gpt-3.5-turbo").

    Declaration
    [JsonProperty]
    public string BaseId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Name

    The human-readable name of the fine-tuned model.

    Declaration
    [JsonProperty]
    public string Name { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Version

    The version string of the fine-tune job, typically a timestamp (e.g. "2023-04-30-07-37-01").

    Declaration
    [JsonProperty]
    public string Version { get; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    FromOpenAIModelId(string)

    Parses an OpenAI fine-tuned model ID and returns a BaseModelInfo instance. Returns null if the ID does not represent a fine-tuned model.

    Declaration
    public static BaseModelInfo FromOpenAIModelId(string id)
    Parameters
    Type Name Description
    string id
    Returns
    Type Description
    BaseModelInfo
    | Edit this page View Source

    OpenAI_IsFineTuned(string)

    Returns true if the given model ID represents an OpenAI fine-tuned model (contains ":ft").

    Declaration
    public static bool OpenAI_IsFineTuned(string id)
    Parameters
    Type Name Description
    string id
    Returns
    Type Description
    bool
    | Edit this page View Source

    OpenAI_ResolveBaseId(string)

    Extracts the base model ID from a fine-tuned model ID by stripping everything from ":ft" onward.

    Declaration
    public static string OpenAI_ResolveBaseId(string id)
    Parameters
    Type Name Description
    string id
    Returns
    Type Description
    string
    | Edit this page View Source

    OpenAI_ResolveFineTunedName(string)

    Extracts the fine-tuned model name from an ID like "curie:ft-model-name-2023-04-30-07-37-01". Returns "model-name".

    Declaration
    public static string OpenAI_ResolveFineTunedName(string id)
    Parameters
    Type Name Description
    string id
    Returns
    Type Description
    string
    | Edit this page View Source

    OpenAI_ResolveFineTunedVersion(string)

    Extracts the timestamp portion from an ID like "curie:ft-model-name-2023-04-30-07-37-01". Returns "2023-04-30-07-37-01".

    Declaration
    public static string OpenAI_ResolveFineTunedVersion(string id)
    Parameters
    Type Name Description
    string id
    Returns
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation