Skip to content
Open
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
29 changes: 29 additions & 0 deletions .github/workflows/opencode-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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:
pull-requests: write
issues: read
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 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The output token limit is set to 262144, which matches the context limit. LLMs (including Qwen models) typically have a much smaller maximum output token limit, usually 4096 or 8192. Setting this value excessively high can lead to API errors or client-side issues when requesting generation.

Suggested change
"output": 262144
"output": 4096

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