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