mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 20:52:11 +00:00
18 lines
606 B
C#
18 lines
606 B
C#
using AIStudio.Provider;
|
|
|
|
namespace AIStudio.Assistants.VisualBriefing;
|
|
|
|
/// <summary>
|
|
/// Produces export-safe model labels without exposing provider model identifiers.
|
|
/// </summary>
|
|
internal static class VisualBriefingModelNames
|
|
{
|
|
/// <summary>
|
|
/// Returns the configured display name or a neutral fallback.
|
|
/// </summary>
|
|
/// <param name="model">The selected provider model.</param>
|
|
/// <returns>An export-safe model label.</returns>
|
|
internal static string ExportLabel(Model model) =>
|
|
string.IsNullOrWhiteSpace(model.DisplayName) ? "Model" : model.DisplayName.Trim();
|
|
}
|