chore: move use_auto_chat_cache_seed_gen and init_chat_cache_seed to LLMSett… (#444)

* move use_auto_chat_cache_seed_gen and init_chat_cache_seed to LLMSettings

* remove RD_AGENT_SETTINGS in llm_utils.py
This commit is contained in:
XianBW
2024-10-21 12:03:59 +08:00
committed by GitHub
parent 64df9bec37
commit 671d4f0600
5 changed files with 19 additions and 21 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ from filelock import FileLock
from fuzzywuzzy import fuzz # type: ignore[import-untyped]
from rdagent.core.conf import RD_AGENT_SETTINGS
from rdagent.oai.llm_conf import LLM_SETTINGS
class RDAgentException(Exception): # noqa: N818
@@ -98,7 +99,7 @@ class CacheSeedGen:
"""
def __init__(self) -> None:
self.set_seed(RD_AGENT_SETTINGS.init_chat_cache_seed)
self.set_seed(LLM_SETTINGS.init_chat_cache_seed)
def set_seed(self, seed: int) -> None:
random.seed(seed)