[PR #7375] feat: add query parameter support for OpenAI-compatible providers #12375

Open
opened 2026-02-16 18:17:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7375

State: open
Merged: No


Summary

Adds a queryParams option to OpenaiCompatibleProviderSettings that appends query parameters to all API requests.

  • Added queryParams?: Record<string, string> to provider settings
  • Created getUrl helper to construct URLs with query params
  • Added integration tests for the new functionality

Fixes #7198

Test plan

  • Added integration tests for providers with queryParams
  • Verified providers without queryParams still work
  • Ran bun test test/provider/openai-compatible.test.ts - all pass
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7375 **State:** open **Merged:** No --- ## Summary Adds a `queryParams` option to `OpenaiCompatibleProviderSettings` that appends query parameters to all API requests. - Added `queryParams?: Record<string, string>` to provider settings - Created `getUrl` helper to construct URLs with query params - Added integration tests for the new functionality Fixes #7198 ## Test plan - [x] Added integration tests for providers with queryParams - [x] Verified providers without queryParams still work - [x] Ran `bun test test/provider/openai-compatible.test.ts` - all pass
yindo added the pull-request label 2026-02-16 18:17:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12375