diff --git a/.github/gallery-agent/main.go b/.github/gallery-agent/main.go index 384885094..1aa58a0ee 100644 --- a/.github/gallery-agent/main.go +++ b/.github/gallery-agent/main.go @@ -134,7 +134,7 @@ func main() { // Continue with original result if selection fails models = result.Models } - } else { + } else if len(result.Models) == 1 { models = result.Models fmt.Println("Only one model found, using it directly") } @@ -325,7 +325,7 @@ func searchAndProcessModels(searchTerm string, limit int, quantization string) ( outputBuilder.WriteString(fmt.Sprintf(" README Content Preview: %s\n", processedModel.ReadmeContentPreview)) } else { - continue + fmt.Printf(" Warning: Failed to get real readme: %v\n", err) } fmt.Println("Real readme got", readmeContent) diff --git a/.github/workflows/gallery-agent.yaml b/.github/workflows/gallery-agent.yaml index 132fac17d..40562c717 100644 --- a/.github/workflows/gallery-agent.yaml +++ b/.github/workflows/gallery-agent.yaml @@ -49,12 +49,12 @@ jobs: PATH="$PATH:$HOME/go/bin" make protogen-go - uses: mudler/localai-github-action@v1.1 with: - model: 'qwen3-4b' + model: 'https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507' - name: Run gallery agent env: #OPENAI_MODEL: ${{ secrets.OPENAI_MODEL }} - OPENAI_MODE: qwen3-4b + OPENAI_MODE: Qwen3-4B-Instruct-2507 OPENAI_BASE_URL: "http://localhost:8080" OPENAI_KEY: ${{ secrets.OPENAI_KEY }} #OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}