Dify access

Configure the site address, independent keys and available models in Dify.

The model connection in Dify is configured in the workspace, and the applied LLM node also needs to select the model separately. The deployment method is different, and the process that actually initiates the request is also different.

Step one: Prepare model plug-in

Go to Workspace Settings → Model Suppliers. If it is not installed, select the official OpenAI-API-compatible model plug-in and complete the installation. If the plug-in installation fails, the plug-in service network will be processed first, so as not to misjudge it as an authentication error on this site.

Create a site-specific key and choose a real model ID that supports the required functionality.

Step 2: Add LLM

Select Add Model and fill in the current plug-in fields:

Field Content
Model name/ID Actual ID of this site
Model Type LLM
API Key Site Key
Endpoint/Base URL https://dunduntoken.com/v1
Completion pattern Chat pattern matching the model

If the field explicitly requires the full request endpoint, fill in the full URL of /v1/chat/completions. The minimum parameters are used first, and the model context and tool capabilities are configured according to actual measurements. Save and perform verification.

Step 3: Bind application nodes

Create a new minimal chat app or Start → LLM → End workflow. Select the new supplier and model in the LLM node, and fill in the prompt “Reply OK only”. Release after successful debugging; passing the draft does not mean that the released version is updated simultaneously.

Step 4: Add capabilities item by item

Go to the Call Record of this site to check the request, and then add the knowledge base, tools and branches. Embedding and Rerank are different model types and should be configured and tested separately. Evaluate reindexing after changing the vector model.

Self-deployment troubleshooting

Check DNS, TLS, proxies and HTTPS outbound from the API service and plugin daemon on the actual network. localhost in the container is itself. 401 Check workspace credentials; 404 Check splicing address; Check tool protocol when chat is normal but Agent fails. Do not permanently bypass TLS errors by turning off certificate verification.

Return to integration directory · Dify official document