mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-20 05:43:55 +00:00
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
This commit is contained in:
parent
c2ed484653
commit
1fe66f5d39
@ -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…
Reference in New Issue
Block a user