The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community(patch) fix MoonshotChat moonshot_api_key is invaild for api key (#21361)
Guangdong Liu1fe66f5d3940
diff --git a/libs/community/langchain_community/chat_models/moonshot.py b/libs/community/langchain_community/chat_models/moonshot.pyindex 202a62d8ea..f16f8ab6d2 100644--- a/libs/community/langchain_community/chat_models/moonshot.py+++ b/libs/community/langchain_community/chat_models/moonshot.py@@ -42,7 +42,7 @@ class MoonshotChat(MoonshotCommon, ChatOpenAI): # type: ignore[misc])client_params = {- "api_key": values["moonshot_api_key"],+ "api_key": values["moonshot_api_key"].get_secret_value(),"base_url": values["base_url"]if "base_url" in valueselse MOONSHOT_SERVICE_URL_BASE,