From 261b315f472f7d2abdf28b435ea0ce7ac7f7455f Mon Sep 17 00:00:00 2001 From: Ronny Gunawan <3048897+ronnygunawan@users.noreply.github.com> Date: Fri, 30 Aug 2024 21:49:57 +0700 Subject: [PATCH] Upgrade from Gemini 1.0 Pro to 1.5 Flash --- BotNet.Services/Gemini/GeminiClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BotNet.Services/Gemini/GeminiClient.cs b/BotNet.Services/Gemini/GeminiClient.cs index 161466b..ad22632 100644 --- a/BotNet.Services/Gemini/GeminiClient.cs +++ b/BotNet.Services/Gemini/GeminiClient.cs @@ -15,7 +15,7 @@ public class GeminiClient( IOptions geminiOptionsAccessor, ILogger 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 _logger = logger;