Skip to content

fix: Inject WebClient.Builder bean in MiniMaxApi#6140

Open
Baqirrizvidev wants to merge 1 commit into
spring-projects:mainfrom
Baqirrizvidev:fix/minimax-api-injectable-webclient-builder
Open

fix: Inject WebClient.Builder bean in MiniMaxApi#6140
Baqirrizvidev wants to merge 1 commit into
spring-projects:mainfrom
Baqirrizvidev:fix/minimax-api-injectable-webclient-builder

Conversation

@Baqirrizvidev
Copy link
Copy Markdown

Inject WebClient.Builder bean in MiniMaxApi constructor instead of using static WebClient.builder() to allow proper customization, telemetry, and configuration sharing across Spring-managed beans. Clones the builder to avoid side-effects on shared bean instances, matching other APIs like ElevenLabsApi. Older constructors are deprecated to maintain full compatibility with existing custom instantiations. Closes #6137.

@Baqirrizvidev Baqirrizvidev force-pushed the fix/minimax-api-injectable-webclient-builder branch from baabe79 to 5132caa Compare May 29, 2026 12:36
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.

MiniMaxApi creates WebClient directly instead of using injectable WebClient.Builder bean

1 participant