Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
/opencodePublic archive

Commit4427df5

Browse files
authored
fixup early return for ollama (#266)
1 parentb9bedba commit4427df5

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
deferres.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
varmodelListlocalModelList
@@ -97,6 +99,7 @@ func listLocalModels(modelsEndpoint string) []localModel {
9799
"error",err,
98100
"endpoint",modelsEndpoint,
99101
)
102+
return []localModel{}
100103
}
101104

102105
varsupportedModels []localModel

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp