mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-30 11:26:24 +02:00
refactor: Move utility services to a dedicated 'services' module
- Updated import paths for LLM, connector, query, and streaming services to reflect their new location in the 'services' module. - Removed obsolete utility service files that have been migrated.
This commit is contained in:
parent
59cab99737
commit
5045b7433a
14 changed files with 14 additions and 13 deletions
|
|
@ -2,7 +2,7 @@ import asyncio
|
|||
import json
|
||||
from typing import Any, Dict, List
|
||||
|
||||
from app.utils.connector_service import ConnectorService
|
||||
from app.services.connector_service import ConnectorService
|
||||
from langchain_core.messages import HumanMessage, SystemMessage
|
||||
from langchain_core.runnables import RunnableConfig
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ from .sub_section_writer.configuration import SubSectionType
|
|||
from .qna_agent.graph import graph as qna_agent_graph
|
||||
from .utils import AnswerOutline, get_connector_emoji, get_connector_friendly_name
|
||||
|
||||
from app.utils.query_service import QueryService
|
||||
from app.services.query_service import QueryService
|
||||
|
||||
from langgraph.types import StreamWriter
|
||||
|
||||
|
|
@ -262,7 +262,7 @@ async def write_answer_outline(state: State, config: RunnableConfig, writer: Str
|
|||
Returns:
|
||||
Dict containing the answer outline in the "answer_outline" key for state update.
|
||||
"""
|
||||
from app.utils.llm_service import get_user_strategic_llm
|
||||
from app.services.llm_service import get_user_strategic_llm
|
||||
from app.db import get_async_session
|
||||
|
||||
streaming_service = state.streaming_service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue