fix(utils): 修复 JSON 日志编码问题
- 在 json.dumps 中添加 ensure_ascii=False 参数,以支持非 ASCII 字符编码 -这个修改确保了包含中文等非 ASCII 字符的日志信息能够正确处理和显示
This commit is contained in:
parent
e619b09c8a
commit
786aa92b48
1 changed files with 1 additions and 1 deletions
|
|
@ -358,7 +358,7 @@ async def get_best_cached_response(
|
||||||
"cache_id": best_cache_id,
|
"cache_id": best_cache_id,
|
||||||
"original_prompt": prompt_display,
|
"original_prompt": prompt_display,
|
||||||
}
|
}
|
||||||
logger.info(json.dumps(log_data))
|
logger.info(json.dumps(log_data, ensure_ascii=False))
|
||||||
return best_response
|
return best_response
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue