mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 14:29:07 +00:00
Override the ToString method for models
This commit is contained in:
parent
8a42d1eb50
commit
3e1d171968
@ -4,4 +4,11 @@ namespace AIStudio.Provider;
|
||||
/// The data model for the model to use.
|
||||
/// </summary>
|
||||
/// <param name="Id">The model's ID.</param>
|
||||
public readonly record struct Model(string Id);
|
||||
public readonly record struct Model(string Id)
|
||||
{
|
||||
#region Overrides of ValueType
|
||||
|
||||
public override string ToString() => string.IsNullOrWhiteSpace(this.Id) ? "no model selected" : this.Id;
|
||||
|
||||
#endregion
|
||||
}
|
Loading…
Reference in New Issue
Block a user