Revised to support debug mode from command line

This commit is contained in:
kinance
2023-04-08 12:39:57 +09:00
parent c0aacac72e
commit 91fe21e64d
5 changed files with 14 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ class Config(metaclass=Singleton):
def __init__(self):
self.continuous_mode = False
self.speak_mode = False
self.debug_mode = False
# TODO - make these models be self-contained, using langchain, so we can configure them once and call it good
self.fast_llm_model = os.getenv("FAST_LLM_MODEL", "gpt-3.5-turbo")
self.smart_llm_model = os.getenv("SMART_LLM_MODEL", "gpt-4")
@@ -66,6 +67,9 @@ class Config(metaclass=Singleton):
def set_speak_mode(self, value: bool):
self.speak_mode = value
def set_debug_mode(self, value: bool):
self.debug_mode = value
def set_fast_llm_model(self, value: str):
self.fast_llm_model = value