Replies: 1 comment 2 replies
-
To integrate the Chatflow API, you need to obtain the trace_manager = TraceQueueManager(
app_id=app_model.id, user_id=user.id if isinstance(user, Account) else user.session_id
)
workflow_node_execution_repository = SQLAlchemyWorkflowNodeExecutionRepository(
session_factory=session_factory,
user=user,
app_id=application_generate_entity.app_config.app_id,
triggered_from=WorkflowNodeExecutionTriggeredFrom.WORKFLOW_RUN,
) Once you have the Additionally, I found a similar resolved issue where specifying the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Provide a description of requested docs changes
I have now installed the OpenAI Compatible Dify APP plugin, and I have registered my Chatflow application inside it. Details are as follows:
What I understand is: I can only obtain the POST link address of this Chatflow. So the question arises: how can I use this POST link?
I then found the following code:
import json
from typing import Mapping
from werkzeug import Request, Response
from dify_plugin import Endpoint
class Duck(Endpoint):
def _invoke(self, r: Request, values: Mapping, settings: Mapping) -> Response:
"""
Invokes the endpoint with the given request.
"""
app_id = values["app_id"]
However, this function requires me to provide an app_id, which I don't have. Then I didn't know what to do next.
Beta Was this translation helpful? Give feedback.
All reactions