From 6bd9a304bc30dfd9c5938ecee6799eaca8c932ee Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 4 Dec 2025 22:43:31 +0100 Subject: [PATCH] Add local AI model to gallery agent workflow Updated the GitHub Actions workflow to include the local AI model and modified environment variables for the gallery agent. Signed-off-by: Ettore Di Giacinto --- .github/workflows/gallery-agent.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gallery-agent.yaml b/.github/workflows/gallery-agent.yaml index a6479975d..259d932dc 100644 --- a/.github/workflows/gallery-agent.yaml +++ b/.github/workflows/gallery-agent.yaml @@ -38,13 +38,17 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.21' - + - uses: mudler/localai-github-action@v1 + with: + model: 'qwen3-1.7b' - name: Run gallery agent env: - OPENAI_MODEL: ${{ secrets.OPENAI_MODEL }} + #OPENAI_MODEL: ${{ secrets.OPENAI_MODEL }} + OPENAI_MODE: qwen3-1.7b + OPENAI_BASE_URL: "http://localhost:8080" OPENAI_KEY: ${{ secrets.OPENAI_KEY }} - OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }} + #OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }} SEARCH_TERM: ${{ github.event.inputs.search_term || 'GGUF' }} LIMIT: ${{ github.event.inputs.limit || '15' }} QUANTIZATION: ${{ github.event.inputs.quantization || 'Q4_K_M' }}