Commit b1e2982
committed
fix(models): propagate provider filter when specified before list command
Fixes bounty issue #1687
When running 'cortex models openai list', the provider argument was captured
by ModelsCli.provider but ignored when the List subcommand was matched.
Now the provider filter is passed through to run_list() using args.provider.or(self.provider),
supporting both 'cortex models openai list' and 'cortex models list openai' orderings.1 parent 8f839ec commit b1e2982
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
| |||
0 commit comments