dify icon indicating copy to clipboard operation
dify copied to clipboard

The manually added Tongyi model cannot be deleted.

Open songlin1994 opened this issue 9 months ago • 3 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After configuring the Tongyi model in version 0.15.3, Deepseek was not supported, so the Deepseek model was manually added.

However, after upgrading Dify to version 1.0.0, Deepseek is now natively supported. But the previously manually added model still exists and cannot be deleted.

Image

Image

Image

Image

Image

✔️ Expected Behavior

I hope to delete the previously added model or get instructions on how to delete it.

❌ Actual Behavior

The deletion does not report any errors, but it has no effect.

songlin1994 avatar Mar 05 '25 06:03 songlin1994

点击移除,不报错,但是没效果。依然存在

songlin1994 avatar Mar 05 '25 06:03 songlin1994

To address the issue of not being able to delete a manually added model in Dify version 1.0.0, you might want to check the following:

  1. Database Entries: Ensure that the model is correctly removed from the database. The relevant tables for model management include AppModelConfig and App, which store configurations and references to models. You may need to manually verify and delete entries related to the model in these tables if the UI does not reflect the changes [1].

  2. API or Backend Logic: If there is an API endpoint or backend logic responsible for model deletion, ensure it is functioning correctly. There might be a need to debug or log the process to identify why the deletion is not taking effect.

  3. Configuration Files: Check if there are any configuration files that might still reference the model. These might need to be updated or cleared to reflect the deletion.

  4. UI Caching: Sometimes, the UI might cache data. Ensure that the UI is refreshed or any cache is cleared to reflect the changes made in the backend.

If these steps do not resolve the issue, further investigation into the specific implementation of model deletion in the Dify codebase might be necessary.

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

dosubot[bot] avatar Mar 05 '25 06:03 dosubot[bot]

I have a same problem.

Thunderinmoonlight avatar Mar 05 '25 07:03 Thunderinmoonlight