Skip to content

fix: add URL field to OpenAIFilterer#44

Merged
tyzbit merged 1 commit into
tyzbit:mainfrom
joryirving:fix-openai-filter-url
May 21, 2026
Merged

fix: add URL field to OpenAIFilterer#44
tyzbit merged 1 commit into
tyzbit:mainfrom
joryirving:fix-openai-filter-url

Conversation

@joryirving
Copy link
Copy Markdown
Contributor

Fixes #43

The OpenAIFilterer struct was missing the `URL` field entirely, causing all requests to default to `api.openai.com` regardless of config.

This matches the behavior of `OpenAIAnnotator` which correctly handles custom URLs.

Changes:

  • Add `URL` field to OpenAIFilterer struct (matching OpenAIAnnotator)
  • Use `option.WithBaseURL()` when creating the client
  • Fall back to `api.openai.com/v1/` if URL is empty

@tyzbit tyzbit merged commit 4f793b0 into tyzbit:main May 21, 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.

OpenAIFilterer ignores URL config, always hits api.openai.com

2 participants