Skip to content

Commit 3ed1ad6

Browse files
committed
Responded to pull request feedback
1 parent 4a890c1 commit 3ed1ad6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

GPT/gpt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ def gpt_generate_sql(text_to_process: str) -> str:
9191
"text", ""
9292
)
9393

94-
def gpt_enable_debug():
94+
def gpt_start_debug():
9595
"""Enable debug logging"""
96-
GPTState.enable_debug()
96+
GPTState.start_debug()
9797

98-
def gpt_disable_debug():
98+
def gpt_stop_debug():
9999
"""Disable debug logging"""
100-
GPTState.disable_debug()
100+
GPTState.stop_debug()
101101

102102
def gpt_clear_context():
103103
"""Reset the stored context"""

GPT/gpt.talon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
user.paste(result)
2626

2727
# Enable debug logging so you can more details about messages being sent
28-
{user.model} enable debug: user.gpt_enable_debug()
28+
{user.model} start debug: user.gpt_start_debug()
2929

3030
# Disable debug logging
31-
{user.model} disable debug: user.gpt_disable_debug()
31+
{user.model} stop debug: user.gpt_stop_debug()

lib/modelState.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ class GPTState:
1515
debug_enabled: ClassVar[bool] = False
1616

1717
@classmethod
18-
def enable_debug(cls):
18+
def start_debug(cls):
1919
"""Enable debug printing"""
20-
cls.context = []
20+
GPTState.debug_enabled = True
2121
actions.app.notify("Enabled debug logging")
2222

2323
@classmethod
24-
def disable_debug(cls):
24+
def stop_debug(cls):
2525
"""Disable debug printing"""
26-
cls.context = []
26+
GPTState.debug_enabled = False
2727
actions.app.notify("Disabled debug logging")
2828

2929
@classmethod

0 commit comments

Comments
 (0)