Switch from token to cookie auth

This commit is contained in:
2026-03-11 18:58:55 +00:00
parent 01f42c22d6
commit b3355831d8
9 changed files with 46 additions and 59 deletions

View File

@@ -42,12 +42,12 @@ public class RecipeService : IRecipeService
""instructions"": [""string"", ""string""]
}";
var config = new GenerationConfig {
var generationConfig = new GenerationConfig {
ResponseMimeType = "application/json",
Temperature = 0.1f
};
var request = new GenerateContentRequest(prompt, config);
var request = new GenerateContentRequest(prompt, generationConfig);
await Task.Run(() => request.AddMedia(base64Image, image.ContentType ?? "image/png"));