Skip to content

Commit de5ffe4

Browse files
fix: Dependence error
1 parent 8dcc065 commit de5ffe4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

backend/apps/system/crud/assistant.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from fastapi import FastAPI
66
import requests
77
from sqlmodel import Session, select
8-
from apps.chat.task.llm import LLMService
98
from apps.datasource.models.datasource import CoreDatasource
109
from apps.system.models.system_model import AssistantModel
1110
from apps.system.schemas.auth import CacheName, CacheNamespace
@@ -14,7 +13,6 @@
1413
from common.core.db import engine
1514
from starlette.middleware.cors import CORSMiddleware
1615
from common.core.config import settings
17-
from deps import CurrentUser
1816

1917
@cache(namespace=CacheNamespace.EMBEDDED_INFO, cacheName=CacheName.ASSISTANT_INFO, keyExpression="assistant_id")
2018
async def get_assistant_info(*, session: Session, assistant_id: int) -> AssistantModel | None:
@@ -25,7 +23,7 @@ def get_assistant_user(*, id: int):
2523
return UserInfoDTO(id=id, account="sqlbot-inner-assistant", oid=1, name="sqlbot-inner-assistant", email="[email protected]")
2624

2725
# def get_assistant_ds(*, session: Session, assistant: AssistantModel):
28-
def get_assistant_ds(llm_service: LLMService) -> list[dict]:
26+
def get_assistant_ds(llm_service) -> list[dict]:
2927
assistant: AssistantModel = llm_service.current_assistant
3028
session: Session = llm_service.session
3129
type = assistant.type

0 commit comments

Comments
 (0)