chore: run dotnet format
This commit is contained in:
@@ -2,4 +2,4 @@ namespace AltGen.API.Common;
|
||||
|
||||
class AltGenException(string message) : Exception(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -11,4 +11,4 @@ static class ValidationResultsExtensions
|
||||
static r => r.Select(static e => e.ErrorMessage!).ToArray()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,4 +44,4 @@ record GenerateRequest(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace AltGen.API.Generate;
|
||||
|
||||
record GenerateResponse(string AltText);
|
||||
record GenerateResponse(string AltText);
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace AltGen.API.Generate.Providers.Gemini;
|
||||
|
||||
record Candidate(Content Content);
|
||||
record Candidate(Content Content);
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace AltGen.API.Generate.Providers.Gemini;
|
||||
|
||||
record Content(Part[] Parts, string Role);
|
||||
record Content(Part[] Parts, string Role);
|
||||
@@ -8,4 +8,4 @@ class GeminiAltTextProvider(IGeminiService geminiService) : IAltTextProvider
|
||||
{
|
||||
return _geminiService.GenerateContentAsync(providerKey, mimeType, image);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,4 +3,4 @@ namespace AltGen.API.Generate.Providers.Gemini;
|
||||
record GeminiRequest(
|
||||
Content SystemInstruction,
|
||||
Content[] Contents
|
||||
);
|
||||
);
|
||||
@@ -1,3 +1,3 @@
|
||||
namespace AltGen.API.Generate.Providers.Gemini;
|
||||
|
||||
record GeminiResponse(Candidate[] Candidates);
|
||||
record GeminiResponse(Candidate[] Candidates);
|
||||
@@ -3,4 +3,4 @@ namespace AltGen.API.Generate.Providers.Gemini;
|
||||
interface IGeminiService
|
||||
{
|
||||
Task<string> GenerateContentAsync(string providerKey, string mimeType, MemoryStream image);
|
||||
}
|
||||
}
|
||||
@@ -8,4 +8,4 @@ static class LLMProvider
|
||||
{
|
||||
return provider is Gemini;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,4 +10,4 @@ global using AltGen.API.Generate;
|
||||
global using AltGen.API.Generate.Providers;
|
||||
global using AltGen.API.Generate.Providers.Gemini;
|
||||
|
||||
global using Microsoft.AspNetCore.Mvc;
|
||||
global using Microsoft.AspNetCore.Mvc;
|
||||
Reference in New Issue
Block a user