Skip to content

Commit

Permalink
fix: remove timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
aliel committed Jun 4, 2024
1 parent f693207 commit 95369a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,8 @@ export class LlamaCppApiEngine {
let chatLog = `${promptFormat.userPrepend}${persona.name.toLowerCase()}${promptFormat.userAppend}`;
for (let i = messages.length - 1; i >= 0; i--) {
const message = messages[i];
const timestamp_string = message.timestamp
? ` (at ${message.timestamp.toString()})`
: '';
let messageLog = '';
messageLog += `${promptFormat.userPrepend}${message.role.toLowerCase()}${timestamp_string}${promptFormat.userAppend}`;
messageLog += `${promptFormat.userPrepend}${message.role.toLowerCase()}${promptFormat.userAppend}`;
messageLog += `${message.content}`;
messageLog += `${promptFormat.stopSequence}`;
messageLog += `${promptFormat.lineSeparator}`;
Expand Down

0 comments on commit 95369a6

Please sign in to comment.