Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions backend/apps/chat/task/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
dynamic_ds_types = [1, 3]
dynamic_subsql_prefix = 'select * from sqlbot_dynamic_temp_table_'

session_maker = scoped_session(sessionmaker(bind=engine))
session_maker = scoped_session(sessionmaker(bind=engine, class_=Session))


class LLMService:
Expand Down Expand Up @@ -88,7 +88,6 @@ def __init__(self, session: Session, current_user: CurrentUser, chat_question: C
current_assistant: Optional[CurrentAssistant] = None, no_reasoning: bool = False,
embedding: bool = False, config: LLMConfig = None):
self.chunk_list = []
session.exec = session.exec if hasattr(session, "exec") else session.execute
self.current_user = current_user
self.current_assistant = current_assistant
chat_id = chat_question.chat_id
Expand Down