put debug setting to cfg and use it in when calling chat.chat_with_at and fix_json

This commit is contained in:
Alexander Nikulin
2023-04-09 14:33:30 +04:00
parent d8a7a811c8
commit 546d8783e7
3 changed files with 10 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ class Config(metaclass=Singleton):
"""
def __init__(self):
self.debug = False
self.continuous_mode = False
self.speak_mode = False
# TODO - make these models be self-contained, using langchain, so we can configure them once and call it good
@@ -110,3 +111,6 @@ class Config(metaclass=Singleton):
def set_pinecone_region(self, value: str):
self.pinecone_region = value
def set_debug_mode(self, value: bool):
self.debug = value