Skip to content

Conversation

@Awowen
Copy link

@Awowen Awowen commented Jan 8, 2026

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
Copy link
Contributor

github-actions bot commented Jan 8, 2026

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

No duplicate PRs found

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