Skip to content

feat(alt-text): add baseUrl option to openAIResolver#150

Merged
jhb-dev merged 1 commit into
jhb-software:mainfrom
fkkehlet:feat/alt-text-openai-base-url
May 25, 2026
Merged

feat(alt-text): add baseUrl option to openAIResolver#150
jhb-dev merged 1 commit into
jhb-software:mainfrom
fkkehlet:feat/alt-text-openai-base-url

Conversation

@fkkehlet
Copy link
Copy Markdown
Contributor

The content-translator plugin's openAIResolver already accepts a baseUrl option, but the alt-text plugin's resolver does not. This makes it impossible to use OpenAI-compatible vision providers (e.g. Nebius Token Factory) without writing a custom resolver.

This PR adds an optional baseUrl parameter to openAIResolver for pointing at OpenAI-compatible providers.

Allow pointing the built-in openAIResolver at OpenAI-compatible
providers (Nebius, Azure, local inference) by passing a custom base URL,
matching the content-translator plugin's openAIResolver API.
@fkkehlet fkkehlet force-pushed the feat/alt-text-openai-base-url branch from f2ca9f6 to 1ab3e21 Compare May 22, 2026 12:00
@jhb-dev jhb-dev merged commit fa64a9b into jhb-software:main May 25, 2026
11 checks passed
@jhb-dev
Copy link
Copy Markdown
Contributor

jhb-dev commented May 25, 2026

Thanks for this PR, thats a good addition!

I just published a new version to npm: https://www.npmjs.com/package/@jhb.software/payload-alt-text-plugin

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.

2 participants