diff --git a/api/apps/sdk/chat.py b/api/apps/sdk/chat.py index 263375e77..44cf2f533 100644 --- a/api/apps/sdk/chat.py +++ b/api/apps/sdk/chat.py @@ -169,6 +169,8 @@ def update(tenant_id, chat_id): if len(embd_count) > 1: return get_result(message='Datasets use different embedding models."', code=settings.RetCode.AUTHENTICATION_ERROR) req["kb_ids"] = ids + else: + req["kb_ids"] = [] llm = req.get("llm") if llm: if "model_name" in llm: