Skip to content
Merged
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
51 changes: 51 additions & 0 deletions .github/workflows/lilbonk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Lil Bonk

on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
pull_request_review:
types: [submitted]

concurrency:
# intentionally hardcoded so that all Bonk workflows coexist peacefully
group: bonk-${{ github.event.pull_request.number || github.event.issue.number || github.ref }}
cancel-in-progress: false

jobs:
lilbonk:
if: github.event.sender.type != 'Bot' && contains(github.event.comment.body, '/lilbonk')
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
id-token: write
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run Lil Bonk
uses: ask-bonk/ask-bonk/github@main
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_AI_GATEWAY_ACCOUNT_ID }}
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CF_AI_GATEWAY_NAME }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_AI_GATEWAY_TOKEN }}
with:
model: "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.5"
agent: docs
mentions: "/lilbonk"
permissions: CODEOWNERS
30 changes: 30 additions & 0 deletions opencode.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,34 @@
"experimental": {
"continue_loop_on_deny": true,
},
"provider": {
"cloudflare-ai-gateway": {
"models": {
"workers-ai/@cf/moonshotai/kimi-k2.5": {
"name": "Kimi K2.5",
"attachment": true,
"reasoning": true,
"tool_call": true,
"temperature": true,
"interleaved": {
"field": "reasoning_content",
},
"modalities": {
"input": ["text", "image"],
"output": ["text"],
},
"limit": {
"context": 256000,
"output": 64000,
},
"options": {
"temperature": 1.0,
"top_p": 0.95,
"max_tokens": 64000,
"parallel_tool_calls": true,
},
},
},
},
},
}
Loading