From e9e19bc537d02b761360075edaad4d95696b8ed0 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 4 Dec 2024 19:59:53 +0000 Subject: [PATCH] use ollama qwen models --- .github/workflows/genai-pr-review.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/genai-pr-review.yml b/.github/workflows/genai-pr-review.yml index 9ac10f3c76..c3c0c1aaea 100644 --- a/.github/workflows/genai-pr-review.yml +++ b/.github/workflows/genai-pr-review.yml @@ -28,25 +28,21 @@ jobs: - run: yarn install --frozen-lockfile - name: compile run: yarn compile + - name: start ollama + run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama - name: git stuff run: git fetch origin && git pull origin main:main - name: genaiscript pr-describe continue-on-error: true - run: node packages/cli/built/genaiscript.cjs run pr-describe --out ./temp/genai/pr-describe -prd --out-trace $GITHUB_STEP_SUMMARY + run: node packages/cli/built/genaiscript.cjs run pr-describe --out ./temp/genai/pr-describe -prd --out-trace $GITHUB_STEP_SUMMARY --model ollama:qwen2.5-coder:7b env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }} - OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} - name: genaiscript pr-review - run: node packages/cli/built/genaiscript.cjs run pr-review --out ./temp/genai/pr-review -prc --out-trace $GITHUB_STEP_SUMMARY + run: node packages/cli/built/genaiscript.cjs run pr-review --out ./temp/genai/pr-review -prc --out-trace $GITHUB_STEP_SUMMARY --model ollama:qwen2.5-coder:3b continue-on-error: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_COMMIT_SHA: ${{ github.event.pull_request.base.sha}} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }} - OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }} - name: Archive genai results if: always() uses: actions/upload-artifact@v4