Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeepSeek tool calls can loop indefinitely. #4313

Open
shaper opened this issue Jan 7, 2025 · 2 comments
Open

DeepSeek tool calls can loop indefinitely. #4313

shaper opened this issue Jan 7, 2025 · 2 comments
Labels
ai/provider bug Something isn't working external

Comments

@shaper
Copy link
Contributor

shaper commented Jan 7, 2025

Description

Remove toolChoice and set maxSteps: 10 in

Code example

No response

AI provider

@ai-sdk/deepseek v0.0.2

Additional context

https://x.com/kvz/status/1876609097467826257
https://x.com/giro_lino/status/1876613395425714467
https://x.com/giro_lino/status/1876622037554458670

@shaper shaper added bug Something isn't working ai/provider labels Jan 7, 2025
@shaper shaper self-assigned this Jan 7, 2025
@lgrammel
Copy link
Collaborator

I've tried it with maxSteps: 3 and maxSteps: 2. It terminates correctly. The issue is that deepseek keeps calling tools. This can be caused by sending back the tool results incorrectly or by weakness of the llm

@lgrammel
Copy link
Collaborator

Deepseek function calling is currently unstable: https://api-docs.deepseek.com/guides/function_calling

@shaper shaper removed their assignment Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/provider bug Something isn't working external
Projects
None yet
Development

No branches or pull requests

2 participants