diff --git a/libs/langchain-anthropic/src/chat_models.ts b/libs/langchain-anthropic/src/chat_models.ts index 83f860ec4b53..8feff95aed7f 100644 --- a/libs/langchain-anthropic/src/chat_models.ts +++ b/libs/langchain-anthropic/src/chat_models.ts @@ -99,7 +99,7 @@ function anthropicResponseToChatMessages( const castMessage = messages as any; const generations: ChatGeneration[] = [ { - text: "s", + text: "", message: new AIMessage({ content: castMessage, additional_kwargs: additionalKwargs,