fix: improve maintenance and synchronize live conversations

This commit is contained in:
WangShen007 committed 2026-10-29 09:46:21 +08:00
1 parent bb541bd212
commit ef86a5d3af
297 files changed
+2983 -1274

No files matched your search

-2
View File
@@ -15,7 +15,6 @@ limitations under the License.
"""
from fastapi import Depends, HTTPException, status, Cookie, Request
from fastapi.security import HTTPBearer
from sqlalchemy.orm import Session
from typing import Callable, Iterable, Optional, List
from uuid import UUID
@@ -25,7 +24,6 @@ from app.models.user import User
from app.models.organization import Organization
from app.services.auth_sessions import ACCESS, live_payload
from app.core.logger import get_logger
from app.models.role import Role
logger = get_logger(__name__)
+1 -1
View File
@@ -20,7 +20,7 @@ import http.cookies
from urllib.parse import parse_qs, urlparse
from app.core.security import verify_conversation_token
from app.core.logger import get_logger
from app.database import get_db, SessionLocal
from app.database import SessionLocal
from app.models.user import User
from sqlalchemy.orm import Session
from app.core.cors import is_first_party_origin, origin_of
-1
View File
@@ -15,7 +15,6 @@ limitations under the License.
"""
import os
import json
from pydantic_settings import BaseSettings
from typing import List, Literal, NamedTuple, Optional
from dotenv import load_dotenv
-1
View File
@@ -15,7 +15,6 @@ limitations under the License.
"""
import json
import os
import time
import asyncio
import traceback
+1 -1
View File
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
"""
from typing import Dict, List
from typing import Dict
from app.models.agent import AgentType
# Common base instructions for all agent types
+1 -1
View File
@@ -16,7 +16,7 @@ limitations under the License.
import json
from datetime import datetime, timedelta, timezone
from typing import Optional, Dict
from typing import Optional
import re
import uuid
from jose import JWTError, jwt