From 29b84896b7b34d9691e0c90b8ea7a51bd71a9891 Mon Sep 17 00:00:00 2001 From: moarshy Date: Wed, 13 Mar 2024 09:52:57 +0800 Subject: [PATCH] change default temp to 0 --- .../customs/prediction_request_sme/prediction_request_sme.py | 2 +- .../valory/customs/prediction_request/prediction_request.py | 2 +- .../prediction_request_claude/prediction_request_claude.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nickcom007/customs/prediction_request_sme/prediction_request_sme.py b/packages/nickcom007/customs/prediction_request_sme/prediction_request_sme.py index e1636ba5..581855cd 100644 --- a/packages/nickcom007/customs/prediction_request_sme/prediction_request_sme.py +++ b/packages/nickcom007/customs/prediction_request_sme/prediction_request_sme.py @@ -65,7 +65,7 @@ def count_tokens(text: str, model: str) -> int: DEFAULT_NUM_WORDS: Dict[str, Optional[int]] = defaultdict(lambda: 300) DEFAULT_OPENAI_SETTINGS = { "max_tokens": 500, - "temperature": 0.7, + "temperature": 0., } MAX_TOKENS = { "gpt-3.5-turbo": 4096, diff --git a/packages/valory/customs/prediction_request/prediction_request.py b/packages/valory/customs/prediction_request/prediction_request.py index 97b9d45a..9d7abd4d 100644 --- a/packages/valory/customs/prediction_request/prediction_request.py +++ b/packages/valory/customs/prediction_request/prediction_request.py @@ -73,7 +73,7 @@ def count_tokens(text: str, model: str) -> int: DEFAULT_OPENAI_SETTINGS = { "max_tokens": 500, - "temperature": 0.7, + "temperature": 0., } ALLOWED_TOOLS = [ "prediction-offline", diff --git a/packages/valory/customs/prediction_request_claude/prediction_request_claude.py b/packages/valory/customs/prediction_request_claude/prediction_request_claude.py index 550cd216..900da127 100644 --- a/packages/valory/customs/prediction_request_claude/prediction_request_claude.py +++ b/packages/valory/customs/prediction_request_claude/prediction_request_claude.py @@ -35,7 +35,7 @@ DEFAULT_NUM_WORDS = 300 DEFAULT_OPENAI_SETTINGS = { "max_tokens": 500, - "temperature": 0.7, + "temperature": 0., } ALLOWED_TOOLS = [ "claude-prediction-offline",