The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: fix hunyuan message include chinese signature error (#22795) (#22796)
mrhbja1268d9e9a37
diff --git a/libs/community/langchain_community/chat_models/hunyuan.py b/libs/community/langchain_community/chat_models/hunyuan.pyindex 9cac65c872..e7681d4155 100644--- a/libs/community/langchain_community/chat_models/hunyuan.py+++ b/libs/community/langchain_community/chat_models/hunyuan.py@@ -90,7 +90,7 @@ def _signature(secret_key: SecretStr, url: str, payload: Dict[str, Any]) -> str:value = payload[key]if isinstance(value, list) or isinstance(value, dict):- value = json.dumps(value, separators=(",", ":"))+ value = json.dumps(value, separators=(",", ":"), ensure_ascii=False)elif isinstance(value, float):value = "%g" % value