Skip to content

Commit 63fe093

Browse files
committed
add Qwen3 AI review workflow
1 parent 2ff15cf commit 63fe093

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ai-review.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Qwen3 AI Review
2+
on:
3+
push:
4+
branches: [main]
5+
6+
jobs:
7+
ai-review:
8+
runs-on: self-hosted
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 2
13+
14+
- name: Qwen3 Code Review
15+
run: |
16+
$diff = git diff HEAD~1
17+
$body = @{
18+
model = "x-coder-rl-qwen3-8b-i1"
19+
messages = @(
20+
@{role="system"; content="Review this HTML/CSS/JS code diff for bugs and issues. Be concise."},
21+
@{role="user"; content="Review: $diff"}
22+
)
23+
temperature = 0.3
24+
max_tokens = 500
25+
} | ConvertTo-Json -Depth 5
26+
$response = Invoke-RestMethod -Uri "http://127.0.0.1:1234/v1/chat/completions" -Method Post -ContentType "application/json" -Body $body
27+
Write-Host "Qwen3 Review:"
28+
Write-Host $response.choices[0].message.content
29+
shell: powershell

0 commit comments

Comments
 (0)