Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/opencode-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: OpenCode Review

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

jobs:
review:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
Comment thread
spike-rabbit marked this conversation as resolved.
Resolved
contents: read
pull-requests: write
issues: read
Comment thread
spike-rabbit marked this conversation as resolved.
Resolved
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false

- uses: anomalyco/opencode/github@5d0f86606ac30690f79f0a6a9f41a1f49fe95d0b
env:
SIEMENS_API_KEY: ${{ secrets.SIEMENS_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
model: siemens/qwen-3.6-27b
use_github_token: true
prompt: |
Review this pull request.
Provide feedback as line-specific comments on the relevant code lines (using the review comment API).
Do not repeat line line-specific comments in the overall review outcome.
Do NOT make any commits or changes. Only review and comment on specific lines.
25 changes: 25 additions & 0 deletions opencode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"siemens": {
"npm": "@ai-sdk/openai-compatible",
"name": "code.siemens.com",
"options": {
"baseURL": "https://api.siemens.com/llm/v1",
"apiKey": "{env:SIEMENS_API_KEY}"
},
"models": {
"qwen-3.6-27b": {
"limit": {
"context": 262144,
"output": 262144
Comment thread
spike-rabbit marked this conversation as resolved.
Resolved
Comment thread
spike-rabbit marked this conversation as resolved.
Resolved

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output token limit of 262144 is excessively high. Qwen models typically cap output at 4096–8192 tokens. Requesting 262144 output tokens will likely cause API errors or truncated responses. Reduce to "output": 4096.

},
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
}
}
}
}
}
Loading