mirror of
https://github.com/mudler/LocalAI.git
synced 2026-01-23 05:41:22 -05:00
fix(gallery agent): fixups
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user