Skip to content

Remove duplicate builder overrides in OpenAiChatOptions#6255

Merged
sdeleuze merged 5 commits into
spring-projects:mainfrom
guanxuc:openai-chatoptions-duplicate
Jun 2, 2026
Merged

Remove duplicate builder overrides in OpenAiChatOptions#6255
sdeleuze merged 5 commits into
spring-projects:mainfrom
guanxuc:openai-chatoptions-duplicate

Conversation

@guanxuc
Copy link
Copy Markdown
Contributor

@guanxuc guanxuc commented Jun 2, 2026

  • Removed toolCallbacks, toolNames, toolContext, internalToolExecutionEnabled, frequencyPenalty, presencePenalty, stopSequences, temperature, topK, topP overrides from the OpenAiChatOptions.Builder class.
  • Fixed combineWith() to properly merge toolCallbacks, toolNames and stopSequences instead of replacing them.

@guanxuc guanxuc force-pushed the openai-chatoptions-duplicate branch from 663ab80 to 7f7579c Compare June 2, 2026 10:16
@sdeleuze sdeleuze self-assigned this Jun 2, 2026
@sdeleuze
Copy link
Copy Markdown
Contributor

sdeleuze commented Jun 2, 2026

Please refine to fix tests and keep the defensive copy in DefaultToolCallingChatOptions.Builder (specifically in clone(), toolCallbacks(List), toolNames(Set), and toolContext(Map)).

@sdeleuze sdeleuze added enhancement New feature or request openai options labels Jun 2, 2026
@sdeleuze sdeleuze added this to the 2.0.0-RC1 milestone Jun 2, 2026
@guanxuc
Copy link
Copy Markdown
Contributor Author

guanxuc commented Jun 2, 2026

@sdeleuze Thanks for you review and good advice, I will fix it soon.

@guanxuc guanxuc force-pushed the openai-chatoptions-duplicate branch 2 times, most recently from 7622efd to 711220d Compare June 2, 2026 10:58
guanxuc added 2 commits June 2, 2026 19:10
- Removed toolCallbacks, toolNames, toolContext, internalToolExecutionEnabled, frequencyPenalty, presencePenalty, stopSequences, temperature, topK, topP overrides from the OpenAiChatOptions.Builder class.
- Fixed combineWith() to properly merge toolCallbacks and toolNames instead of replacing them.

Signed-off-by: guanxu <1510424541@qq.com>
Signed-off-by: guanxu <1510424541@qq.com>
@guanxuc guanxuc force-pushed the openai-chatoptions-duplicate branch from 711220d to babf8c7 Compare June 2, 2026 11:10
guanxuc added 3 commits June 2, 2026 19:21
Signed-off-by: guanxu <1510424541@qq.com>
Signed-off-by: guanxu <1510424541@qq.com>
Signed-off-by: guanxu <1510424541@qq.com>
@guanxuc
Copy link
Copy Markdown
Contributor Author

guanxuc commented Jun 2, 2026

@sdeleuze I have fixed the unit tests and add some code clean up, please take a look when you are free.

@sdeleuze sdeleuze merged commit 8673f02 into spring-projects:main Jun 2, 2026
4 checks passed
@guanxuc guanxuc deleted the openai-chatoptions-duplicate branch June 2, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request openai options

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants