mirror of https://github.com/Mai-with-u/MaiBot.git
🤖 自动格式化代码 [skip ci]
parent
8f4489a145
commit
3b89eb6ea8
|
|
@ -3,6 +3,7 @@ from json_repair import repair_json
|
||||||
|
|
||||||
# 以下代码用于修复损坏的 JSON 字符串。
|
# 以下代码用于修复损坏的 JSON 字符串。
|
||||||
|
|
||||||
|
|
||||||
def fix_broken_generated_json(json_str: str) -> str:
|
def fix_broken_generated_json(json_str: str) -> str:
|
||||||
"""
|
"""
|
||||||
使用 json-repair 库修复格式错误的 JSON 字符串。
|
使用 json-repair 库修复格式错误的 JSON 字符串。
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue