mirror of
https://github.com/xming521/WeClone.git
synced 2026-09-17 16:39:57 +08:00
更新依赖项,将commentjson替换为pyjson5;优化README文档,修正项目文档链接;添加聊天平台适配表格以支持不同平台的消息类型。
This commit is contained in:
@@ -2,7 +2,7 @@ import os
|
||||
import sys
|
||||
from typing import Any, Dict, cast
|
||||
|
||||
import commentjson
|
||||
import pyjson5
|
||||
from omegaconf import OmegaConf
|
||||
from pydantic import BaseModel
|
||||
|
||||
@@ -23,7 +23,7 @@ def load_base_config() -> WcConfig:
|
||||
|
||||
try:
|
||||
with open(config_path, "r", encoding="utf-8") as f:
|
||||
s_config_dict: Dict[str, Any] = commentjson.load(f)
|
||||
s_config_dict: Dict[str, Any] = pyjson5.load(f)
|
||||
except FileNotFoundError:
|
||||
logger.error(f"Configuration file not found: {config_path}")
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user