diff --git a/agent/component/llm.py b/agent/component/llm.py index 819c13809..39e043aeb 100644 --- a/agent/component/llm.py +++ b/agent/component/llm.py @@ -18,9 +18,8 @@ import json import logging import os import re -import threading from copy import deepcopy -from typing import Any, Generator, AsyncGenerator +from typing import Any, AsyncGenerator import json_repair from functools import partial from common.constants import LLMType diff --git a/api/apps/sdk/session.py b/api/apps/sdk/session.py index 3edce4c3c..d4db3cb56 100644 --- a/api/apps/sdk/session.py +++ b/api/apps/sdk/session.py @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import asyncio import json import re import time @@ -44,6 +43,7 @@ from rag.prompts.generator import cross_languages, gen_meta_filter, keyword_extr from common.constants import RetCode, LLMType, StatusEnum from common import settings + @manager.route("/chats//sessions", methods=["POST"]) # noqa: F821 @token_required async def create(tenant_id, chat_id):