Replies: 1 comment 2 replies
-
|
There isn't a direct method in the Model Provider plugin API to access outputs from previous steps in a chatflow. Dify's workflow engine handles parameter passing and only provides the plugin with the final, aggregated input for model execution. If your model needs dynamic values generated in earlier steps, you should configure your workflow or prompt templates to inject those outputs as part of the context or parameters passed to your plugin. This way, the required values are available when your provider is called. Workarounds must be implemented at the workflow or variable configuration level, not within the provider plugin itself. Standard Dify context passing and variable injection support this pattern if referenced correctly. For more on accessing raw LLM responses, see this discussion. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
We have implemented a custom Model Provider plugin which invokes a custom small language model.
We did this as our model generates long responses which requires streaming.
Our model requires dynamic value for a few input parameters, which are generated in previous steps of a chatflow.
These parameters change on every message.
Is there any method available in the Model Provider plugin to read the output of a previous step in the chatflow?
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions