Fix: Changed keyword from assisstant to secretary (#2937)

This commit is contained in:
Varun Mohanta
2025-07-08 10:57:25 +05:30
committed by GitHub
parent 6866e56d7a
commit aae5989e78
35 changed files with 351 additions and 122 deletions

View File

@@ -1,11 +1,11 @@
import logging
from typing import List
from app.utils.prompts import MEMORY_CATEGORIZATION_PROMPT
from dotenv import load_dotenv
from openai import OpenAI
from pydantic import BaseModel
from tenacity import retry, stop_after_attempt, wait_exponential
from app.utils.prompts import MEMORY_CATEGORIZATION_PROMPT
load_dotenv()
openai_client = OpenAI()

View File

@@ -1,7 +1,8 @@
from sqlalchemy.orm import Session
from app.models import User, App
from typing import Tuple
from app.models import App, User
from sqlalchemy.orm import Session
def get_or_create_user(db: Session, user_id: str) -> User:
"""Get or create a user with the given user_id"""

View File

@@ -27,16 +27,15 @@ Example configuration that will be automatically adjusted:
}
"""
import os
import json
import hashlib
import json
import os
import socket
import platform
from mem0 import Memory
from app.database import SessionLocal
from app.models import Config as ConfigModel
from mem0 import Memory
_memory_client = None
_config_hash = None

View File

@@ -1,7 +1,8 @@
from typing import Optional
from uuid import UUID
from app.models import App, Memory, MemoryState
from sqlalchemy.orm import Session
from app.models import Memory, App, MemoryState
def check_memory_access_permissions(