Skip to content

Commit

Permalink
Upgrade from Gemini 1.0 Pro to 1.5 Flash
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnygunawan committed Aug 30, 2024
1 parent 9f8ea26 commit 261b315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BotNet.Services/Gemini/GeminiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class GeminiClient(
IOptions<GeminiOptions> geminiOptionsAccessor,
ILogger<GeminiClient> logger
) {
private const string BASE_URL = "https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent";
private const string BASE_URL = "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent";
private readonly HttpClient _httpClient = httpClient;
private readonly string _apiKey = geminiOptionsAccessor.Value.ApiKey!;
private readonly ILogger<GeminiClient> _logger = logger;
Expand Down

0 comments on commit 261b315

Please sign in to comment.