File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626REPO_ROOT = Path (__file__ ).resolve ().parents [2 ]
2727SRC_DIR = (REPO_ROOT / "src" ).resolve ()
2828
29- MODEL = os .environ .get ("IMPROVE_MODEL" , "qwen2.5-coder:1 .5b" )
29+ MODEL = os .environ .get ("IMPROVE_MODEL" , "qwen2.5-coder:0 .5b" )
3030OLLAMA_URL = os .environ .get ("OLLAMA_URL" , "http://127.0.0.1:11434" )
3131
3232# Trimming budgets — a happy medium: enough context to be interesting without
Original file line number Diff line number Diff line change 2222import urllib .request
2323from pathlib import Path
2424
25- MODEL = os .environ .get ("REVIEW_MODEL" , "qwen2.5-coder:1 .5b" )
25+ MODEL = os .environ .get ("REVIEW_MODEL" , "qwen2.5-coder:0 .5b" )
2626OLLAMA_URL = os .environ .get ("OLLAMA_URL" , "http://127.0.0.1:11434" )
2727PR_NUMBER = os .environ .get ("PR_NUMBER" , "" )
2828
Original file line number Diff line number Diff line change 1010 model :
1111 description : " Ollama model to run"
1212 required : false
13- default : " qwen2.5-coder:1 .5b"
13+ default : " qwen2.5-coder:0 .5b"
1414
1515# NOTE on security: the token below is intentionally NOT granted `workflows`
1616# permission, so GitHub itself will reject any push that touches
3131 timeout-minutes : 40
3232 env :
3333 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34- IMPROVE_MODEL : ${{ github.event.inputs.model || 'qwen2.5-coder:1 .5b' }}
34+ IMPROVE_MODEL : ${{ github.event.inputs.model || 'qwen2.5-coder:0 .5b' }}
3535
3636 steps :
3737 - name : Checkout
Original file line number Diff line number Diff line change 2525 timeout-minutes : 30
2626 env :
2727 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28- REVIEW_MODEL : " qwen2.5-coder:1 .5b"
28+ REVIEW_MODEL : " qwen2.5-coder:0 .5b"
2929 # The improve workflow named its branch auto/improve-<run_id>, and that
3030 # run_id is exactly this event's workflow_run.id.
3131 PR_BRANCH : " auto/improve-${{ github.event.workflow_run.id }}"
You can’t perform that action at this time.
0 commit comments