fixup early return for ollama (#266)

This commit is contained in:
Tai Groot 2025-06-26 23:44:20 -07:00 • committed by GitHub
parent b9bedbae80
commit 4427df587f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,6 +81,7 @@ func listLocalModels(modelsEndpoint string) []localModel {
"error", err,
"endpoint", modelsEndpoint,
)
return []localModel{}
}
defer res.Body.Close()
@ -89,6 +90,7 @@ func listLocalModels(modelsEndpoint string) []localModel {
"status", res.StatusCode,
"endpoint", modelsEndpoint,
)
return []localModel{}
}
var modelList localModelList
@ -97,6 +99,7 @@ func listLocalModels(modelsEndpoint string) []localModel {
"error", err,
"endpoint", modelsEndpoint,
)
return []localModel{}
}
var supportedModels []localModel