You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I am not sure if this is provided already. We want to use Dify and trigger various workflows via its API, for instance, a chat embedded in our nodejs application. The workflow uses custom tools which hit our internal APIs, but the custom tools are not "environment-aware", so that developers can use them locally to hit their own localhost servers (for instance, via reverse proxies), while our production hits the production servers.
It seems like the baked assumption for tools is that they are always supposed to hit production endpoints, which affects cycles of development greatly.
2. Additional context or comments
No response
3. Can you help us with this feature?
I am interested in contributing to this feature.
The text was updated successfully, but these errors were encountered:
Do you want to have several instances eg staging, production and dev and they can access different environment separately?
I think you can do this in several ways.
Like postman and other tools we provide https://docs.dify.ai/guides/workflow/variables you can define a variable in inputs and use if/else to distinguish the environments, or you can simply deploy multiple instances among the teams.
Not exactly. This is about custom tools, for instance ones that hit our own internal APIs. Consider the following:
You wanna incorporate a custom tool that requests say user orders from your application.
You add its OpenAPI spec, and save the custom tool.
Now you can use it, but the custom tool, during development, needs to hit localhost, but in production, it needs to hit our deployed application. How do you do this in a developer ergonomic way? I don't think Dify supports it.
Furthermore, fiddling with OpenAPI specification is itself not super ergonomic. I wonder if we can create custom tools via the API?
Do you have any suggestions? I think there might be a way that you could add 3 tools, and each of them would account for the environment. Eg, dev-tool-spec, stg-tool-spec, prod-tool-spec.
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I am not sure if this is provided already. We want to use Dify and trigger various workflows via its API, for instance, a chat embedded in our nodejs application. The workflow uses custom tools which hit our internal APIs, but the custom tools are not "environment-aware", so that developers can use them locally to hit their own localhost servers (for instance, via reverse proxies), while our production hits the production servers.
It seems like the baked assumption for tools is that they are always supposed to hit production endpoints, which affects cycles of development greatly.
2. Additional context or comments
No response
3. Can you help us with this feature?
The text was updated successfully, but these errors were encountered: