读取本地chatandrole初步成功

This commit is contained in:
2026-03-19 19:31:12 +08:00
parent 4b85b35cf8
commit 91d11abe90
9 changed files with 69 additions and 50 deletions

View File

@@ -43,4 +43,4 @@ def get_all_role_and_chat() -> Dict[str, List[str]]:
print(f"处理文件夹 {entry.name} 时出错: {str(e)}")
continue
return result
return result

View File

@@ -2,7 +2,7 @@ import json
from datetime import datetime
from backend.core import config as cfg
from pathlib import Path
from ..core.items import ChatRequest
# 假设 ChatRequest 定义在这里或者从其他地方导入
# from backend.app.core.items import ChatRequest