Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit 4427df5

Browse files
authored
fixup early return for ollama (#266)
1 parent b9bedba commit 4427df5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/llm/models/local.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ func listLocalModels(modelsEndpoint string) []localModel {
8181
"error", err,
8282
"endpoint", modelsEndpoint,
8383
)
84+
return []localModel{}
8485
}
8586
defer res.Body.Close()
8687

@@ -89,6 +90,7 @@ func listLocalModels(modelsEndpoint string) []localModel {
8990
"status", res.StatusCode,
9091
"endpoint", modelsEndpoint,
9192
)
93+
return []localModel{}
9294
}
9395

9496
var modelList localModelList
@@ -97,6 +99,7 @@ func listLocalModels(modelsEndpoint string) []localModel {
9799
"error", err,
98100
"endpoint", modelsEndpoint,
99101
)
102+
return []localModel{}
100103
}
101104

102105
var supportedModels []localModel

0 commit comments

Comments
 (0)