langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
45.31k stars 6.37k forks source link

I deployed dify locally with source code.However, the external_data_tools field in the app_model_configs table has always been empty. I have added the tools to the agent and enabled them, but the model cannot call the tools. #6558

Closed qihanghou726 closed 1 month ago

qihanghou726 commented 1 month ago

Self Checks

Dify version

0.6.10

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Snipaste_2024-07-23_14-18-56

✔️ Expected Behavior

Ability to correctly use agent tool functions

❌ Actual Behavior

nothing

crazywoola commented 1 month ago

What LLM do you use?

qihanghou726 commented 1 month ago

What LLM do you use?

gpt 4o I also tried engre and glm-4 but neither worked. I saw that the external_data_tools field in app_model_configs was queried in the code, but it was always empty in my database. Is it related to this?

crazywoola commented 1 month ago

What LLM do you use?

gpt 4o I also tried engre and glm-4 but neither worked. I saw that the external_data_tools field in app_model_configs was queried in the code, but it was always empty in my database. Is it related to this?

Yes I guess so.

qihanghou726 commented 1 month ago

What LLM do you use?

gpt 4o I also tried engre and glm-4 but neither worked. I saw that the external_data_tools field in app_model_configs was queried in the code, but it was always empty in my database. Is it related to this?

Yes I guess so.

So what should I try to solve this problem?

qihanghou726 commented 1 month ago

What LLM do you use?

gpt 4o I also tried engre and glm-4 but neither worked. I saw that the external_data_tools field in app_model_configs was queried in the code, but it was always empty in my database. Is it related to this?

Yes I guess so.

Or can you tell me the meaning of the external_data_tools field? Is it used to record tools?

crazywoola commented 1 month ago

6569 You mentioned you can correctly get the answers from the cloud version?

What LLM do you use?

gpt 4o I also tried engre and glm-4 but neither worked. I saw that the external_data_tools field in app_model_configs was queried in the code, but it was always empty in my database. Is it related to this?

Yes I guess so.

So what should I try to solve this problem?

In this case you should update the code to latest on main branch.

crazywoola commented 1 month ago

What LLM do you use?

gpt 4o I also tried engre and glm-4 but neither worked. I saw that the external_data_tools field in app_model_configs was queried in the code, but it was always empty in my database. Is it related to this?

Yes I guess so.

Or can you tell me the meaning of the external_data_tools field? Is it used to record tools?

See this doc https://docs.dify.ai/guides/extension/api-based-extension/external-data-tool