Spaces:
Running
Running
Commit ·
a2de51e
1
Parent(s): 90e1fa5
fix
Browse filesFiles changed (2)
120 unmodified lines121122123124124125126127120 unmodified lines throw new Exception("Gemini API key is not configured. Please add Gemini:ApiKey to appsettings.json or set GEMINI_API_KEY environment variable."); }
var model = _config["Gemini:Model"] ?? "gemini-1.5-flash"; var model = _config["Gemini:Model"] ?? "gemini-2.5-flash"; var url = $"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={apiKey}";
var parts = new List<object> { new { text = prompt } };22 unmodified lines2324252627262728293022 unmodified lines "ApiKey": "" }, "Gemini": { "ApiKey": "AQ.Ab8RN6Iwv-IEeUHzINPr9-F7EstlZ28kTI55QjNbbzmDYWW-cw", "Model": "gemini-1.5-flash" "ApiKey": "AQ.Ab8RN6KQ0DG4-5LtLVuMUvpOtKcK9nKX6CqyOXue_BVUL0bIeA", "Model": "gemini-2.5-flash" }, "Stripe": { "SecretKey": "",FlowAPI.Application/Services/AIService.cs+1-1
FlowAPI/appsettings.json+2-2