Skip to content

Commit

Permalink
refactor: rename json fields of the instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulrhmanGoni committed Jan 20, 2025
1 parent 9e39f4b commit 167a9bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/export/JSONL_Format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ function JSONL_Formater({
answer,
}: InstructionBase): string {
return (
`{${systemMessage ? `"System": "${sanitizer(systemMessage)}",` : ""}` +
`"Prompt": "${sanitizer(question)}",` +
`"Response": "${sanitizer(answer)}"}\n`
`{${systemMessage ? `"systemMessage": "${sanitizer(systemMessage)}",` : ""}` +
`"prompt": "${sanitizer(question)}",` +
`"response": "${sanitizer(answer)}"}\n`
);
}

Expand Down

0 comments on commit 167a9bd

Please sign in to comment.