ele

ele

ele

Come and get the benefits, Tencent Cloud Cloud Studio big benefits!!! Seven

Next, in the previous article, we create a new agent in dify.

BGS48A

We open our deployed dify homepage and click to create a blank application.
4VolLB

We randomly select one, defaulting to the first, the chat assistant.
Dxcksd

Fill in the relevant information, then click create.
ugvg65

Next, we make relevant settings for this demo, such as prompts, llm configuration, etc.
ht4K5R

We directly choose ollama, but you can also choose others, such as chatgpt, grok, etc.
gVLgU8

Set up ollama by selecting llm, filling in the url, adding the model, and then clicking save.

At this point, there may be a brief lag, but it’s fine; just wait for it to add successfully. Does that url look familiar? Port 8434, yes, that's right after opening it. oSLqfr
The url that prompts "Ollama is running"

YD0iYF

On the successful addition page, a model list will appear.
qIepia

Close the dialog box; at this point, it prompts that there is a problem with the model.
2T6FJO

Click 1, then click 2, and select the ollama model we just added.
9rJI8i

Modify parameters according to your needs; I set the temperature to the default 0.8.
tdZCrB

Then proceed to debug.

I used the official prompts from deepseek.

After debugging, we can make some functional settings; the functions are in the bottom right corner.
COO1Dn

Which functions to enable depends on personal needs.
MHNvId

After completing the settings, we click the close button in the top right corner.

Once done, we click the publish button in the top right corner to publish.
auKWAF

After successful publishing, how do we embed it into a webpage?

Click the small arrow next to the publish button and select "Embed on Website."
oN54Oy

Based on the style layout, we choose the appropriate layout.
WAq8bv

Note the URL here; they are actually incorrect and need to be modified to:

http://80.app.cloudstudio.work/
Change to:
https://evwewc-tzfevj-80.app.cloudstudio.work/

For example, the original web page.
d628rs

Let's see the effect by embedding it into this page; we click to start chatting.
J5xlFX

Look at the prompt.
xwujGM

At this point, the first dify application has been successfully set up.

Note here, the api address recognized by dify is incorrect.
vJMwXa

Dify recognizes: http://80.app.cloudstudio.work/v1
While the actual address is the one in the red box above: https://evwewc-tzfevj-80.app.cloudstudio.work/v1

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.