Skip to content

feat: add query parameter support for OpenAI-compatible providers - #7375

Closed
Awowen wants to merge 1 commit into
anomalyco:devfrom
Awowen:feat/query-params-openai-compatible
Closed

Awowen wants to merge 1 commit into
anomalyco:devfrom
Awowen:feat/query-params-openai-compatible

Conversation

@Awowen

@Awowen Awowen commented Jan 8, 2026

Copy link
Copy Markdown

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

   Adds a queryParams option to OpenaiCompatibleProviderSettings that
   appends query parameters to all API requests. This enables support
   for providers that require query string parameters for API versioning,
   tenant identification, or feature flags.

   Fixes anomalyco#7198
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Mar 10, 2026
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.

[FEATURE]: Add query parameter support for custom OpenAI-compatible providers

1 participant