mirror of
https://github.com/elder-plinius/AutoTemp.git
synced 2026-09-24 18:40:45 +02:00
Update autotemp.py
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ class AutoTemp:
|
|||||||
{output}
|
{output}
|
||||||
---
|
---
|
||||||
"""
|
"""
|
||||||
score_text = self.generate_with_openai(eval_prompt, 0.5, fixed_top_p_for_evaluation)
|
score_text = self.generate_with_openai(eval_prompt, 0.69, fixed_top_p_for_evaluation)
|
||||||
score_match = re.search(r'\b\d+(\.\d)?\b', score_text)
|
score_match = re.search(r'\b\d+(\.\d)?\b', score_text)
|
||||||
if score_match:
|
if score_match:
|
||||||
return round(float(score_match.group()), 1) # Round the score to one decimal place
|
return round(float(score_match.group()), 1) # Round the score to one decimal place
|
||||||
|
|||||||
Reference in New Issue
Block a user