Compare commits
No commits in common. "144739fb4a519029eafc875642302292a05f2aab" and "f583cf3bc48dbf7d32dd554b6eb459024b38e0d2" have entirely different histories.
144739fb4a
...
f583cf3bc4
@ -6,16 +6,6 @@ import multiprocessing
|
|||||||
import sys
|
import sys
|
||||||
from contextlib import asynccontextmanager
|
from contextlib import asynccontextmanager
|
||||||
|
|
||||||
# ========== 抑制第三方库的 Pydantic 警告 ==========
|
|
||||||
# langgraph-checkpoint-postgres 等库使用 typing.NotRequired 导致的警告
|
|
||||||
import warnings
|
|
||||||
warnings.filterwarnings(
|
|
||||||
"ignore",
|
|
||||||
message=".*typing.NotRequired is not a Python type.*",
|
|
||||||
category=UserWarning
|
|
||||||
)
|
|
||||||
# ========== End 抑制警告 ==========
|
|
||||||
|
|
||||||
# ========== Monkey patch: 必须在所有其他导入之前执行 ==========
|
# ========== Monkey patch: 必须在所有其他导入之前执行 ==========
|
||||||
# 使用 json_repair 替换 mem0 的 remove_code_blocks 函数
|
# 使用 json_repair 替换 mem0 的 remove_code_blocks 函数
|
||||||
# 这必须在导入任何 mem0 模块之前执行
|
# 这必须在导入任何 mem0 模块之前执行
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user