Skip to content

Commit

Permalink
Fix chat prompt serialization (#3230)
Browse files Browse the repository at this point in the history
* Update cookbook

* Fix chat prompt output serialization
  • Loading branch information
jacoblee93 authored Nov 11, 2023
1 parent c9822e3 commit 92ead3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/src/prompts/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class ChatPromptValue extends BasePromptValue {
fields = { messages: fields };
}

super(...arguments);
super(fields);
this.messages = fields.messages;
}

Expand Down

0 comments on commit 92ead3a

Please sign in to comment.