Merge pull request #694 from Torantulino/fix-no-attribute-debug_mode

Change debug_mode to debug in chat.py.
This commit is contained in:
Toran Bruce Richards
2023-04-10 14:33:02 +01:00
committed by GitHub

View File

@@ -64,7 +64,7 @@ def chat_with_ai(
model = cfg.fast_llm_model # TODO: Change model from hardcode to argument
# Reserve 1000 tokens for the response
if cfg.debug_mode:
if cfg.debug:
print(f"Token limit: {token_limit}")
send_token_limit = token_limit - 1000