fix /model completions

This commit is contained in:
Paul Gauthier 2024-08-28 15:57:06 -07:00
parent 0541513c7a
commit ac6c76d530

View file

@ -106,9 +106,10 @@ class AutoCompleter(Completer):
partial = words[-1].lower()
matches, _, _ = self.commands.matching_commands(cmd)
if len(matches) != 1:
if len(matches) == 1:
cmd = matches[0]
elif cmd not in matches:
return
cmd = matches[0]
if cmd not in self.command_completions:
candidates = self.commands.get_completions(cmd)