File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments