记忆系统,上下文处理+mem0
This commit is contained in:
@@ -148,6 +148,26 @@ def get_image_models_list() -> list[dict]:
|
||||
]
|
||||
|
||||
|
||||
# ─── 记忆系统配置 ─────────────────────────────────────
|
||||
|
||||
def get_deepseek_api_key() -> str:
|
||||
return os.getenv("DEEPSEEK_API_KEY", "")
|
||||
|
||||
|
||||
def get_ollama_base_url() -> str:
|
||||
return os.getenv("OLLAMA_BASE_URL", "http://localhost:11434")
|
||||
|
||||
|
||||
def get_mem0_embedding_model() -> str:
|
||||
return os.getenv("MEM0_EMBEDDING_MODEL", "nomic-embed-text")
|
||||
|
||||
|
||||
def get_max_recent_turns() -> int:
|
||||
return int(os.getenv("MAX_RECENT_TURNS", "20"))
|
||||
|
||||
|
||||
# ─── 图像输出配置 ─────────────────────────────────────
|
||||
|
||||
def get_image_aspect_ratio() -> str:
|
||||
return os.getenv("IMAGE_ASPECT_RATIO", "1:1")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user