feat: support Gemma 4 chat and agent trials

This commit is contained in:
Hamza Ayed
2026-09-29 23:19:25 +03:00
parent 18d17eba50
commit 874c7152d1
3 changed files with 28 additions and 4 deletions
+5 -1
View File
@@ -11,7 +11,11 @@ if ($env:GROQ_API_KEY) {
Write-Warning 'GROQ_API_KEY is not configured; local chat works, but voice transcription will return 503.'
}
$ollama = Invoke-RestMethod -Uri 'http://127.0.0.1:11434/api/tags' -TimeoutSec 5
$model = 'qwen2.5:1.5b-instruct-q4_K_M'
$model = if ($env:LOCAL_MODEL) {
$env:LOCAL_MODEL
} else {
'qwen2.5:1.5b-instruct-q4_K_M'
}
if (-not ($ollama.models.name -contains $model)) {
throw "Ollama is running, but model '$model' is missing. Run: ollama pull $model"
}