spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Fix extraBody loss during ModelOptionsUtils.merge()

Open SenreySong opened this issue 1 week ago • 1 comments
trafficstars

The extraBody field was being lost when merging OpenAiChatOptions into ChatCompletionRequest using ModelOptionsUtils.merge(). This fix ensures that extraBody parameters (like top_k, repetition_penalty, etc.) are properly preserved during the merge operation.

Added test ExtraBodyMergeTest to verify the fix.

SenreySong avatar Nov 13 '25 08:11 SenreySong