From ded99558818afda5697218ec47023d0122722b9f Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 29 Dec 2025 22:14:14 +0100 Subject: [PATCH] chore(ci): do not select models if we have only 1 result Signed-off-by: Ettore Di Giacinto --- .github/gallery-agent/agent.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/gallery-agent/agent.go b/.github/gallery-agent/agent.go index 0b9f647b5..7a40f717b 100644 --- a/.github/gallery-agent/agent.go +++ b/.github/gallery-agent/agent.go @@ -151,6 +151,11 @@ func getRealReadme(ctx context.Context, repository string) (string, error) { } func selectMostInterestingModels(ctx context.Context, searchResult *SearchResult) ([]ProcessedModel, error) { + + if len(searchResult.Models) == 1 { + return searchResult.Models, nil + } + // Create a conversation fragment fragment := cogito.NewEmptyFragment(). AddMessage("user",