You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report, otherwise it will be closed.
【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
Please do not modify this template :) and fill in all the required fields.
Dify version
1.15.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
i update dify from 1.14 to 1.15 ,new UI is very cool,but when i want to remove old LLM model Ollama provide or OpenAI-API-compatible.
it is show i do success, but there is still display,i can't remove old LLM model, it is still display.
This is a well-documented issue that affects upgrades from older Dify versions. The root cause is that Dify 1.14.x renamed model_type column values in the database (text-generation → llm, embeddings → text-embedding, reranking → rerank) but no data migration was run on existing rows. This causes credential lookups to fail silently — deletions appear to succeed in the UI but the models reappear [1].
Fix: Run these SQL updates on your PostgreSQL database (back it up first):
UPDATE provider_models SET model_type ='llm'WHERE model_type ='text-generation';
UPDATE provider_models SET model_type ='text-embedding'WHERE model_type ='embeddings';
UPDATE provider_models SET model_type ='rerank'WHERE model_type ='reranking';
UPDATE provider_model_credentials SET model_type ='llm'WHERE model_type ='text-generation';
UPDATE provider_model_credentials SET model_type ='text-embedding'WHERE model_type ='embeddings';
UPDATE provider_model_credentials SET model_type ='rerank'WHERE model_type ='reranking';
UPDATE tenant_default_models SET model_type ='llm'WHERE model_type ='text-generation';
UPDATE tenant_default_models SET model_type ='text-embedding'WHERE model_type ='embeddings';
UPDATE tenant_default_models SET model_type ='rerank'WHERE model_type ='reranking';
UPDATE provider_model_settings SET model_type ='llm'WHERE model_type ='text-generation';
UPDATE provider_model_settings SET model_type ='text-embedding'WHERE model_type ='embeddings';
UPDATE provider_model_settings SET model_type ='rerank'WHERE model_type ='reranking';
UPDATE load_balancing_model_configs SET model_type ='llm'WHERE model_type ='text-generation';
UPDATE load_balancing_model_configs SET model_type ='text-embedding'WHERE model_type ='embeddings';
UPDATE load_balancing_model_configs SET model_type ='rerank'WHERE model_type ='reranking';
If the tenant_default_models UPDATE throws a duplicate key error (SQLSTATE 23505), delete the stale rows first [2]:
DELETEFROM tenant_default_models
WHERE tenant_id ='<id>'AND model_type IN ('text-generation','embeddings','reranking');
After running the SQL fix, uninstall and reinstall the affected model plugins (Ollama, OpenAI-API-compatible) to ensure plugin state is consistent [3]. This has been confirmed working by multiple users who hit the same issue — see #37034 and #38828[4][5].
Activity
dosubot commentedon Jul 25, 2026
This is a well-documented issue that affects upgrades from older Dify versions. The root cause is that Dify 1.14.x renamed
model_typecolumn values in the database (text-generation→llm,embeddings→text-embedding,reranking→rerank) but no data migration was run on existing rows. This causes credential lookups to fail silently — deletions appear to succeed in the UI but the models reappear [1].Fix: Run these SQL updates on your PostgreSQL database (back it up first):
If the
tenant_default_modelsUPDATE throws a duplicate key error (SQLSTATE 23505), delete the stale rows first [2]:After running the SQL fix, uninstall and reinstall the affected model plugins (Ollama, OpenAI-API-compatible) to ensure plugin state is consistent [3]. This has been confirmed working by multiple users who hit the same issue — see #37034 and #38828 [4] [5].
To reply, just mention @dosu.
Docs are dead. Just use Dosu.
steven0081 commentedon Jul 25, 2026
thank you very much, this question has resolved at end.i never find the documents before,thanks a lot.