修复代码格式和文件名大小写问题

This commit is contained in:
Windpicker-owo
2025-08-31 20:50:17 +08:00
parent df29014e41
commit 8149731925
218 changed files with 6913 additions and 8257 deletions

View File

@@ -8,7 +8,7 @@ def dyn_select_top_k(
# 检查输入列表是否为空
if not score:
return []
# 按照分数排序(降序)
sorted_score = sorted(score, key=lambda x: x[1], reverse=True)

View File

@@ -58,7 +58,8 @@ def fix_broken_generated_json(json_str: str) -> str:
# Try to load the JSON to see if it is valid
orjson.loads(json_str)
return json_str # Return as-is if valid
except orjson.JSONDecodeError: ...
except orjson.JSONDecodeError:
...
# Step 1: Remove trailing content after the last comma.
last_comma_index = json_str.rfind(",")