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
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
Comment on lines +11 to +13
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/deepseek-v4-flash
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": {
"deepseek-v4-flash": {

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 model name deepseek-v4-flash appears to be incorrect or a typo, as DeepSeek has not released a V4 model (the current latest versions are V3 and R1). Please verify the correct model identifier from the Siemens LLM API documentation.

"limit": {
"context": 1048576,
"output": 1048576

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 1048576 (1M tokens), which is extremely high and likely unsupported as an output limit by any current LLM (typically output limits are 4,096 or 8,192 tokens). This might be a copy-paste error from the context limit. Setting this too high can lead to API errors or unexpected behavior.

Suggested change
"output": 1048576
"output": 8192

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