GeezerVison is showing github.com — feat(ai): add native Groq provider with provider-specific options by rekram1-node · Pull Request #45288 · anomalyco/opencode
Conversation
Issue for this PR
N/A
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Adds a Groq provider that extends the Chat Completions request schema with its own parallel-tool, service-tier, user, and reasoning options. Reasoning format is always parsed except on GPT-OSS, where the field is omitted; it is not a public option. Reuses the existing request builder and streaming parser without changing the base protocol or adding x_groq handling. Core resolves Groq natively and removes its old SDK plugin/direct dependency.
Four fresh cassettes cover text, parallel tool calls and continuation, GPT-OSS reasoning replay, and Qwen parsed reasoning. All six captured HTTP responses include standard top-level usage with stream_options.include_usage enabled. Existing cassettes and shared recording helpers are unchanged.
How did you verify your code works?
- Focused AI/provider/cassette tests: 91 passed.
- Focused Core integration tests: 67 passed.
- AI, Core, Server, SDK, and CLI package typechecks passed.
- Single-target CLI build, workerd bundle probe, and frozen-lockfile install passed.
- Verified all new cassettes exclude credentials and authentication headers.
- Broad Core suite: 2,303 passed, 16 skipped, one unrelated existing failure in preload.test.ts (OPENCODE_TEST_HOME is not set by the current v2 preload).
Screenshots / recordings
N/A
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.