mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 18:07:21 +00:00
Override the ToString method for models
This commit is contained in:
1 file changed
+8
-1
@@ -4,4 +4,11 @@ namespace AIStudio.Provider;
|
|||||||
/// The data model for the model to use.
|
/// The data model for the model to use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="Id">The model's ID.</param>
|
/// <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
|
||||||
|
}
|
||||||
Reference in new issue
Block a user