diff --git a/libs/langchain-community/src/chat_models/ibm.ts b/libs/langchain-community/src/chat_models/ibm.ts index 3bb4f4a0adf4..7db2c9cec1c6 100644 --- a/libs/langchain-community/src/chat_models/ibm.ts +++ b/libs/langchain-community/src/chat_models/ibm.ts @@ -405,8 +405,8 @@ export class ChatWatsonx< ls_provider: "watsonx", ls_model_name: this.model, ls_model_type: "chat", - ls_temperature: params?.temperature ?? undefined, - ls_max_tokens: params?.maxTokens ?? undefined, + ls_temperature: params.temperature ?? undefined, + ls_max_tokens: params.maxTokens ?? undefined, }; }