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

GH-6120: Add REQUIRED constant to ToolChoiceBuilder in DeepSeek and MiniMax APIs

Open suryateja-g13 opened this issue 6 months ago • 0 comments

Summary

  • Adds REQUIRED constant to ToolChoiceBuilder in DeepSeekApi and MiniMaxApi
  • REQUIRED forces the model to call at least one tool, but allows it to choose which one
  • Aligns with the OpenAI spec where tool_choice: "required" is a valid value

Fixes: #6120

Test plan

  • [ ] Build passes: ./mvnw -pl models/spring-ai-deepseek,models/spring-ai-minimax install -DskipTests
  • [ ] New constant is accessible as DeepSeekApi.ChatCompletionRequest.ToolChoiceBuilder.REQUIRED
  • [ ] New constant is accessible as MiniMaxApi.ChatCompletionRequest.ToolChoiceBuilder.REQUIRED

suryateja-g13 avatar May 26 '26 02:05 suryateja-g13