fix: improve maintenance and synchronize live conversations
This commit is contained in:
1 parent
bb541bd212
commit
ef86a5d3af
297 files changed
+2983
-1274
No files matched your search
@@ -16,13 +16,12 @@ limitations under the License.
|
||||
|
||||
import os
|
||||
from fastapi import APIRouter, Depends, HTTPException, status, UploadFile, File, Request
|
||||
from typing import List, Union
|
||||
from typing import List
|
||||
from app.core.logger import get_logger
|
||||
from app.database import get_db
|
||||
from app.models.user import User, UserGroup
|
||||
from app.core.auth import (
|
||||
INBOX_PERMISSIONS,
|
||||
get_current_user,
|
||||
require_any_permission,
|
||||
require_any_unified_permission,
|
||||
require_permissions,
|
||||
@@ -30,7 +29,7 @@ from app.core.auth import (
|
||||
)
|
||||
from app.repositories.agent import AgentRepository
|
||||
from app.repositories.knowledge import KnowledgeRepository
|
||||
from app.models.schemas.agent import AgentUpdate, AgentResponse, AgentCreate, AgentRosterItem, AgentWithCustomizationResponse
|
||||
from app.models.schemas.agent import AgentUpdate, AgentCreate, AgentRosterItem, AgentWithCustomizationResponse
|
||||
from sqlalchemy.orm import Session
|
||||
from app.models.agent import Agent, AgentCustomization
|
||||
from app.models.organization import Organization
|
||||
@@ -718,7 +717,7 @@ async def generate_instructions(
|
||||
|
||||
# Check if enterprise module is available
|
||||
try:
|
||||
from app.enterprise.repositories.subscription import SubscriptionRepository
|
||||
from app.enterprise.repositories.subscription import SubscriptionRepository # noqa: F401 - presence check preserves the optional enterprise contract
|
||||
HAS_ENTERPRISE = True
|
||||
except ImportError:
|
||||
HAS_ENTERPRISE = False
|
||||
|
||||
Reference in new issue
Block a user