Skip to content

feat: support Google BYOK providers through Pi - #492

Merged
hetaoBackend merged 1 commit into
mainfrom
feat/google-provider
Oct 15, 2026
Merged

hetaoBackend merged 1 commit into
mainfrom
feat/google-provider

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Change

Allow manually configured google-generative-ai providers in the CLI and TUI, including OpenCode Go Gemini 4. Model requests and connection probes use the existing Pi Google adapter. Pi also owns Google thinking parameters; OpenCode Go's current /inference/go endpoints receive conversation headers.

Production code grows by 63 net lines. No vendored Pi changes, new dependencies, native model discovery, or structured-output expansion. Includes a CLI setup example.

Validation

  • All applicable verification gates exercised on macOS / Node 22.23.2 at 863f1a6. The default-concurrency capability run hit an existing updater test's 5-second timeout; rerunning the declared suite with two workers passed 218 files / 5502 tests, with 17 existing skips. Remaining gates passed individually.
  • The initial Homebrew Node 26 run hit that updater fixture's copied-Node dynamic-library failure. No unrelated tests or timeouts were changed.
  • Built CLI: live OpenCode Go Gemini 4 connection test and file-tool round trip passed using isolated synthetic input.
  • Independent blind review passed. Windows/Linux validation remains to CI.
  • Performance: basic automatic suite; no transport, history, or tool-loop implementation changes.

Publication and contribution checks

  • Contribution uses the existing applicable licenses; existing notices are preserved.
  • No credentials, account data, real user content, internal history, or private review material.
  • Content-only changes to existing source/test files; no inventory or test-suite registration changes required.
  • Usage documentation updated; offline tests and live acceptance are distinguished above.

Maintainer handoff

No publication-scope or license changes. Shared-source port: pending.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@SaladDay SaladDay added enhancement New feature or request tui Interactive terminal UI (TUI) cli Standalone mcode: TUI, headless, ACP and source builds/tooling labels Oct 15, 2026
@hetaoBackend
hetaoBackend merged commit 9a93560 into main Oct 15, 2026
16 checks passed
@hetaoBackend
hetaoBackend deleted the feat/google-provider branch October 15, 2026 06:17
cursor Bot pushed a commit to kinetick-labs/kinetick-code that referenced this pull request Oct 15, 2026
Adapted from upstream 9a93560 (MiniMax-AI#492). google-generative-ai is added
beside the existing custom, OpenRouter, DeepSeek, local, MiniMax,
Codex and Copilot paths. Pi owns Google requests and thinking
parameters; this runtime does not synthesize a Thinking patch for it.

OpenCode Go still recognizes /zen/go and now also /inference/go.
A Google connection probe without an API key fails before any request,
matching the fork's keyless-provider distinction for other formats.

Co-authored-by: kinetick-labs <kinetick-labs@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Standalone mcode: TUI, headless, ACP and source builds/tooling enhancement New feature or request tui Interactive terminal UI (TUI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants