mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-23 16:08:10 +00:00
fix: correct a small mistake in SimpleChatModel. (#1685)
This commit is contained in:
parent
1279c8de39
commit
ced412e1c1
@ -127,7 +127,7 @@ class SimpleChatModel(BaseChatModel):
|
||||
self, messages: List[BaseMessage], stop: Optional[List[str]] = None
|
||||
) -> ChatResult:
|
||||
output_str = self._call(messages, stop=stop)
|
||||
message = AIMessage(text=output_str)
|
||||
message = AIMessage(content=output_str)
|
||||
generation = ChatGeneration(message=message)
|
||||
return ChatResult(generations=[generation])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user