mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 06:47:22 +00:00
15 lines
572 B
C#
15 lines
572 B
C#
namespace AIStudio.Assistants.ERI;
|
|
|
|
public static class ERIVersionExtensions
|
|
{
|
|
public static Task<string> ReadSpecification(this ERIVersion version, WebRootFiles webRootFiles) => webRootFiles.ReadTextAsync(version.SpecificationURL());
|
|
|
|
public static string SpecificationURL(this ERIVersion version)
|
|
{
|
|
var nameLower = version.ToString().ToLowerInvariant();
|
|
var filename = $"{nameLower}.json";
|
|
return $"specs/eri/{filename}";
|
|
}
|
|
|
|
public static bool WasSpecificationSelected(this ERIVersion version) => version != ERIVersion.NONE;
|
|
} |