Skip to content

Commit 5e67ca4

Browse files
committed
Merge branch 'master' of github.com:HackTricks-wiki/hacktricks-cloud
2 parents 4e0ebf1 + 0aef3c4 commit 5e67ca4

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/translator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
MASTER_BRANCH = "master"
1616
VERBOSE = True
17-
MAX_TOKENS = 10000 #gpt-4-1106-preview
17+
MAX_TOKENS = 20000 #gpt-4-1106-preview
1818

1919
def reportTokens(prompt, model):
2020
encoding = tiktoken.encoding_for_model(model)
@@ -190,6 +190,8 @@ def translate_text(language, text, file_path, model, cont=0, slpitted=False, cli
190190
return translate_text(language, text, file_path, model, cont, False, client)
191191

192192
response_message = response.choices[0].message.content.strip()
193+
response_message = response_message.replace("bypassy", "bypasses") # PL translations translates that from time to time
194+
response_message = response_message.replace("Bypassy", "Bypasses")
193195

194196
# Sometimes chatgpt modified the number of "#" at the beginning of the text, so we need to fix that. This is specially important for the first line of the MD that mucst have only 1 "#"
195197
cont2 = 0

searchindex.js

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)