Skip to content
Snippets Groups Projects
Commit 34bce05d authored by Juuso Rytilahti's avatar Juuso Rytilahti
Browse files

Modified the temperature

parent f3c5e4c1
Branches
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ def get_translation_for_chunk(chunk,i, temperature=1, previous_messages=None):
model=GPT_MODEL,
messages=all_messages,
temperature= temperature,
top_p=0.8
top_p=1
)
if 'choices' in chat_completion and chat_completion['choices']:
......@@ -97,7 +97,7 @@ def get_improved_translation_for_chunk(chunk, translation, temperature=1, previo
messages=all_messages,
temperature= temperature,
#TODO test with top_p=0.8
top_p=1 # set the top_p to default so we get slightly different versions
top_p=0.8 # set the top_p to default so we get slightly different versions
)
if 'choices' in chat_completion and chat_completion['choices']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment