From b07cf3aa356a41bbcfc8fbea4bf119d1bf1e98b5 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Thu, 11 Dec 2025 17:08:23 +0800 Subject: [PATCH] Code format. --- agent/component/llm.py | 3 +-- api/apps/sdk/session.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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):