fix: change default Gemini model to gemini-3.5-flash

gemini-2.5-flash and gemini-2.0-flash-lite are restricted/unavailable.
gemini-3.5-flash is confirmed working on this account.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro
2026-07-15 04:21:55 +00:00
co-authored by Claude Sonnet 4.6
parent 13199b1de4
commit cfa38e51df
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class GeminiIntentService
public function __construct()
{
$this->apiKey = ChatConfig::get('gemini_api_key', '');
$this->model = ChatConfig::get('gemini_model', 'gemini-2.0-flash');
$this->model = ChatConfig::get('gemini_model', 'gemini-3.5-flash');
// v1 for newer models, v1beta as fallback
$ver = preg_match('/gemini-(2\.5|3[\.\d]*)/', $this->model) ? 'v1' : 'v1beta';
$this->apiUrl = "https://generativelanguage.googleapis.com/{$ver}/models/{$this->model}:generateContent";