mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Application model use
This commit is contained in:
parent
0b06e20527
commit
7dc20732d5
|
|
@ -105,7 +105,7 @@ def is_valid_credential(provider, model_type, model_name, model_credential: Dict
|
|||
|
||||
|
||||
def get_model_by_id(_id, workspace_id):
|
||||
model = QuerySet(Model).filter(id=_id)
|
||||
model = QuerySet(Model).filter(id=_id).first()
|
||||
get_authorized_model = DatabaseModelManage.get_model("get_authorized_model")
|
||||
if get_authorized_model is not None:
|
||||
model = get_authorized_model(model, workspace_id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue