Skip to content

feat(llm): align native runtime gate with cloud/local provider lowering (m27) - #18

Merged
TimothyVang merged 1 commit into
mainfrom
m27-cloud-local
Jul 10, 2026
Merged

feat(llm): align native runtime gate with cloud/local provider lowering (m27)#18
TimothyVang merged 1 commit into
mainfrom
m27-cloud-local

Conversation

@TimothyVang

Copy link
Copy Markdown
Owner

Milestone 27 — align native runtime gate with cloud/local provider lowering

Aligns the opencode native LLM runtime gate so cloud vs local providers lower
consistently, with the fallback path made explicit.

Changes

  • packages/opencode/src/session/llm/native-runtime.ts, native-request.ts — native runtime gate for the provider matrix; AI SDK fallback on missing key / required baseURL / unknown provider.
  • packages/opencode/test/session/llm-native.test.ts — expanded coverage of the native + fallback matrix.
  • packages/llm/example/call-sites.md, session/llm/AGENTS.md — doc alignment.

Verification

  • llm-native + tool-repair: 26 pass · llm-native-recorded: 3 pass / 1 skip · packages/llm focused: 11 pass
  • bun typecheck (opencode + llm): clean
  • Provider matrix: native openai, anthropic, google, azure, bedrock, openrouter, ollama-compat, xai-apikey; fallback xai-oauth, missing-key/baseURL
  • Binary 0.0.0-m27-cloud-local-202607101055 sha256 27982c0746360791bc5db6b1a5b1d798df2270ba3db7f9a390b89fd676d3e495

Part of umbrella milestone 27 (docs/milestone-27-parallel.md).

Expand the session native gate to match packages that native-request can lower
(OpenAI, Anthropic, Google, Azure, Bedrock, OpenRouter, OpenAI-compatible local,
xAI API key). Fail closed on missing keys/base URLs; keep xAI OAuth on AI SDK
plugin fetch and OpenAI OAuth on native when fetch is present.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@TimothyVang
TimothyVang merged commit 8bcd306 into main Jul 10, 2026
11 of 13 checks passed
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