Skip to content

Commit f4fbe10

Browse files
Update main.py
1 parent a557048 commit f4fbe10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hacxgpt/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def run_chat(self):
110110
label = f"HACX-GPT:{current_model}"
111111

112112
# Enable multiline for chat
113-
prompt = self.ui.get_input(label, multiline=True)
114-
if not prompt.strip(): continue
113+
prompt = self.ui.get_input(label, multiline=True).strip()
114+
if not prompt: continue
115115

116116
if prompt.lower() == '/exit': return
117117
if prompt.lower() == '/new':
@@ -144,7 +144,7 @@ def run_chat(self):
144144
continue
145145

146146
if prompt.lower().startswith('/provider'):
147-
parts = prompt.split(' ')
147+
parts = prompt.split()
148148
if len(parts) < 2:
149149
self.ui.show_msg("Usage", "/provider <name>", "yellow")
150150
continue
@@ -171,7 +171,7 @@ def run_chat(self):
171171
continue
172172

173173
if prompt.lower().startswith('/model'):
174-
parts = prompt.split(' ')
174+
parts = prompt.split()
175175
if len(parts) < 2:
176176
self.ui.show_msg("Usage", "/model <name>", "yellow")
177177
continue

0 commit comments

Comments
 (0)