Support customize API tool timeout
Self Checks
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] Pleas do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing?
I was using a api tool to enhance dify agent, but the api is a bit slow as it's a cloud function, frequently dify would get no result because of timeout.
2. Describe the feature you'd like to see
I'd like a field timeout when submitting new tools, when timeout is set, dify would respect the setting and accept the long request.
3. How will this feature improve your workflow or experience?
It would make some cloud function usable in dify
4. Additional context or comments
https://github.com/langgenius/dify/blob/d5214e4644230488a589b8653a5a43a85660e02d/api/core/tools/tool/api_tool.py#L15
currently this value is fixed in code.
5. Can you help us with this feature?
- [ ] I am interested in contributing to this feature.
It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.