Skip to content

Commit d05c8dd

Browse files
committed
fix(deepseek): reset tool_choice handling to prevent infinite loop when returnDirect=false (#4617)
Signed-off-by: Kuntal Maity <[email protected]>
1 parent 68e8f79 commit d05c8dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/spring-ai-deepseek/src/main/java/org/springframework/ai/deepseek/DeepSeekChatModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
* backed by {@link DeepSeekApi}.
7777
*
7878
* @author Geng Rong
79-
* @last Updated By : @kuntal1461
79+
* @last Updated By : Kuntal Maity
8080
*/
8181
public class DeepSeekChatModel implements ChatModel {
8282

models/spring-ai-deepseek/src/test/java/org/springframework/ai/deepseek/DeepSeekChatModelToolChoiceResetTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* Verifies that DeepSeekChatModel resets tool_choice to AUTO when resubmitting tool
4545
* results (returnDirect=false) to avoid infinite tool call loops.
4646
*
47-
* @author @kuntal1461
47+
* @author : kuntal maity
4848
*/
4949
class DeepSeekChatModelToolChoiceResetTests {
5050

0 commit comments

Comments
 (0)