Skip to content

Commit

Permalink
fix: increase limit count
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 15, 2023
1 parent c9c6066 commit 6f6a94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openai/getSmallSizeTranscripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type SubtitleItem = {

// Seems like 15,000 bytes is the limit for the prompt
// 13000 = 6500*2
const LIMIT_COUNT = 6500; // 2000 is a buffer
const LIMIT_COUNT = 6200; // 2000 is a buffer
export function getSmallSizeTranscripts(newTextData: SubtitleItem[], oldTextData: SubtitleItem[], byteLimit: number = LIMIT_COUNT): string {
const text = newTextData.sort((a, b) => a.index - b.index).map(t => t.text).join(" ");
const byteLength = getByteLength(text);
Expand Down

1 comment on commit 6f6a94c

@vercel
Copy link

@vercel vercel bot commented on 6f6a94c Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.