We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3389419 commit 406b670Copy full SHA for 406b670
packages/tasks/src/snippets/common.ts
@@ -10,7 +10,7 @@ export interface StringifyMessagesOptions {
10
11
export function stringifyMessages(messages: ChatCompletionInputMessage[], opts: StringifyMessagesOptions): string {
12
const keyRole = opts.attributeKeyQuotes ? `"role"` : "role";
13
- const keyContent = opts.attributeKeyQuotes ? `"role"` : "role";
+ const keyContent = opts.attributeKeyQuotes ? `"content"` : "content";
14
15
const messagesStringified = messages.map(({ role, content }) => {
16
if (typeof content === "string") {
0 commit comments