Skip to content

Commit

Permalink
Merge pull request #157 from mayaeary/patch-1
Browse files Browse the repository at this point in the history
Fix: Incorrect name formatting
  • Loading branch information
Vali-98 authored Dec 26, 2024
2 parents bf5fd58 + 5f1b640 commit c3f7323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion constants/API/ContextBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const buildTextCompletionContext = (max_length: number) => {
const timestamp_string = `[${swipe_data.send_date.toString().split(' ')[0]} ${swipe_data.send_date.toLocaleTimeString()}]\n`
const timestamp_length = currentInstruct.timestamp ? tokenizer(timestamp_string) : 0

const name_string = `${message.name} :`
const name_string = `${message.name}: `
const name_length = currentInstruct.names ? tokenizer(name_string) : 0

const shard_length = swipe_len + instruct_len + name_length + timestamp_length + wrap_length
Expand Down

0 comments on commit c3f7323

Please sign in to comment.