-
Notifications
You must be signed in to change notification settings - Fork 978
is it possible to provide a detail step by step guide how to use together with deepseek? thanks #165
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
Comments
how did you connect deepseek? |
Thanks for the reply, here is what i have done:
|
I've added the initialization of complete_native_tool_calls as an empty list at the beginning of the method. This should fix the error you're seeing. // ... existing code ... |
also, pip3 install uvicorn fastapi |
I tried to setup it to use deepseek but it seems it can not invoke the tool correctly. the right sidebar display nth.
here is the error messages:
2025-04-27 21:14:19,784 - ERROR - Error processing stream: cannot access local variable 'complete_native_tool_calls' where it is not associated with a value
Traceback (most recent call last):
File "C:\Users\tonyw\Documents\GitHub\suna\backend\agentpress\response_processor.py", line 406, in process_streaming_response
if config.native_tool_calling and complete_native_tool_calls:
^^^^^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'complete_native_tool_calls' where it is not associated with a value
2025-04-27 21:14:20,638 - INFO - Successfully added message to thread 73b689db-6c25-4051-b83f-49f40736e05c
2025-04-27 21:14:20,648 - INFO - Stream generator main loop cancelled for b1ced9b7-0833-4227-bb1e-f669393ee8ab
2025-04-27 21:14:20,649 - ERROR - Error in listener for b1ced9b7-0833-4227-bb1e-f669393ee8ab: Connection closed by server.
The text was updated successfully, but these errors were encountered: