community(patch) fix MoonshotChat moonshot_api_key is invaild for api key (#21361)

Description: close
https://github.com/langchain-ai/langchain/issues/21237
@baskaryan, @eyurtsev
pull/20800/merge
Guangdong Liu 2 weeks ago committed by GitHub
parent c2ed484653
commit 1fe66f5d39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 values
else MOONSHOT_SERVICE_URL_BASE,

Loading…
Cancel
Save