Commit adba7a7
committed
fix(cortex-engine): return ProviderNotFound error for unknown providers
Fixes bounty issue #1297
When a user specifies an unknown provider (e.g., --model invalid/model),
the code now returns a clear ProviderNotFound error instead of an
ApiKeyNotFound error which was misleading since the issue is the
unrecognized provider, not missing authentication.1 parent 2965e36 commit adba7a7
1 file changed
+4
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
127 | 117 | | |
128 | 118 | | |
129 | 119 | | |
| |||
0 commit comments