Skip to content

Commit 406b670

Browse files
authored
[Conversational Snippet] Fix copy error (#982)
follow up to #976
1 parent 3389419 commit 406b670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tasks/src/snippets/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface StringifyMessagesOptions {
1010

1111
export function stringifyMessages(messages: ChatCompletionInputMessage[], opts: StringifyMessagesOptions): string {
1212
const keyRole = opts.attributeKeyQuotes ? `"role"` : "role";
13-
const keyContent = opts.attributeKeyQuotes ? `"role"` : "role";
13+
const keyContent = opts.attributeKeyQuotes ? `"content"` : "content";
1414

1515
const messagesStringified = messages.map(({ role, content }) => {
1616
if (typeof content === "string") {

0 commit comments

Comments
 (0)