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
BaseModelInfo
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
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
|
Edit this page
View Source
Name
The human-readable name of the fine-tuned model.
Declaration
[JsonProperty]
public string Name { get; }
Property Value
|
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
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
|
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
|
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
|
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
|
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
Extension Methods