mirror of
https://github.com/mudler/LocalAI
synced 2026-04-21 13:27:21 +00:00
fix(gallery agent): fixups
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
3cffde2cd5
commit
ef3ffe4a4e
1 changed files with 2 additions and 1 deletions
3
.github/gallery-agent/main.go
vendored
3
.github/gallery-agent/main.go
vendored
|
|
@ -119,6 +119,7 @@ func main() {
|
|||
}
|
||||
|
||||
fmt.Println(result.FormattedOutput)
|
||||
var models []ProcessedModel
|
||||
|
||||
if len(result.Models) > 1 {
|
||||
fmt.Println("More than one model found (", len(result.Models), "), using AI agent to select the most interesting models")
|
||||
|
|
@ -127,7 +128,7 @@ func main() {
|
|||
}
|
||||
// Use AI agent to select the most interesting models
|
||||
fmt.Println("Using AI agent to select the most interesting models...")
|
||||
models, err := selectMostInterestingModels(context.Background(), result)
|
||||
models, err = selectMostInterestingModels(context.Background(), result)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error in model selection: %v\n", err)
|
||||
// Continue with original result if selection fails
|
||||
|
|
|
|||
Loading…
Reference in a new issue