Skip to content

Commit

Permalink
Update openai.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zeteticl committed Apr 14, 2024
1 parent 843cd0a commit 51a40a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions roll/openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,8 @@ class TranslateAi extends OpenAI {
const response = await fetch(url[index].url);
const data = await response.text();
textLength += data.length;
if (textLength > 150000) return { textLength };
text.push(data);

}
}
//19 = reply
Expand All @@ -267,7 +266,6 @@ class TranslateAi extends OpenAI {
const response = await fetch(url[index].url);
const data = await response.text();
textLength += data.length;
if (textLength > 150000) return { textLength};
text.push(data);

}
Expand Down

0 comments on commit 51a40a6

Please sign in to comment.