Skip to content

feat(byok): add OpenCode Go provider#3929

Open
chrarnoldus wants to merge 5 commits into
mainfrom
feat/opencode-go-byok
Open

feat(byok): add OpenCode Go provider#3929
chrarnoldus wants to merge 5 commits into
mainfrom
feat/opencode-go-byok

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • Add OpenCode Go as a direct user BYOK provider at https://opencode.ai/zen/go/v1.
  • Synchronize its model catalog from models.dev and recommend Qwen3.7 Plus as the resilient fallback model.
  • Prefer Anthropic Messages for MiniMax and Qwen models while retaining OpenAI-compatible Chat Completions for other model families.

Verification

Not performed before PR creation, per requested sequencing.

Visual Changes

N/A

Reviewer Notes

The direct BYOK provider contract now supports an optional per-model AI SDK provider override so OpenCode Go can select Anthropic Messages only for MiniMax and Qwen models.

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@chrarnoldus chrarnoldus self-assigned this Jun 10, 2026
chrarnoldus and others added 2 commits June 10, 2026 15:50
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@kilo-code-bot

kilo-code-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

The incremental commit (refactor(byok): colocate OpenCode Go model detection) is a clean colocation refactor — isOpenCodeGoMessagesModel is moved from model-settings.ts into opencode-go.ts where it logically belongs, and the test import is updated accordingly. The .toLowerCase() normalization was dropped, but this is safe since model IDs sourced from models.dev sync are always lowercase, and the provider prefix 'opencode-go' is a known lowercase constant throughout the codebase.

Files Reviewed (3 files, incremental)
  • apps/web/src/lib/ai-gateway/providers/direct-byok/opencode-go.ts
  • apps/web/src/lib/ai-gateway/providers/direct-byok/opencode-go.test.ts
  • apps/web/src/lib/ai-gateway/providers/model-settings.ts

Reviewed by claude-4.6-sonnet-20260217 · 256,312 tokens

Review guidance: REVIEW.md from base branch main

chrarnoldus and others added 2 commits June 10, 2026 16:44
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant