danylokhodus commited on
Commit
a2de51e
·
1 Parent(s): 90e1fa5
FlowAPI.Application/Services/AIService.cs CHANGED
@@ -121,7 +121,7 @@ namespace FlowAPI.Application.Services
121
  throw new Exception("Gemini API key is not configured. Please add Gemini:ApiKey to appsettings.json or set GEMINI_API_KEY environment variable.");
122
  }
123
 
124
- var model = _config["Gemini:Model"] ?? "gemini-1.5-flash";
125
  var url = $"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={apiKey}";
126
 
127
  var parts = new List<object> { new { text = prompt } };
 
121
  throw new Exception("Gemini API key is not configured. Please add Gemini:ApiKey to appsettings.json or set GEMINI_API_KEY environment variable.");
122
  }
123
 
124
+ var model = _config["Gemini:Model"] ?? "gemini-2.5-flash";
125
  var url = $"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={apiKey}";
126
 
127
  var parts = new List<object> { new { text = prompt } };
FlowAPI/appsettings.json CHANGED
@@ -23,8 +23,8 @@
23
  "ApiKey": ""
24
  },
25
  "Gemini": {
26
- "ApiKey": "AQ.Ab8RN6Iwv-IEeUHzINPr9-F7EstlZ28kTI55QjNbbzmDYWW-cw",
27
- "Model": "gemini-1.5-flash"
28
  },
29
  "Stripe": {
30
  "SecretKey": "",
 
23
  "ApiKey": ""
24
  },
25
  "Gemini": {
26
+ "ApiKey": "AQ.Ab8RN6KQ0DG4-5LtLVuMUvpOtKcK9nKX6CqyOXue_BVUL0bIeA",
27
+ "Model": "gemini-2.5-flash"
28
  },
29
  "Stripe": {
30
  "SecretKey": "",