Aliou Diallo
ec4d413fc9
fix(coding-agent): custom models for built-in providers and list-models error surfacing ( #3072 )
...
* fix(coding-agent): surface models.json load errors on stderr in --list-models
When models.json has validation errors, --list-models silently
discarded custom models and overrides without any user-visible
feedback. Now prints the error to stderr via chalk.yellow warning
before listing available models.
* fix(coding-agent): allow custom models for built-in providers in models.json
Built-in providers (openrouter, anthropic, etc.) already have api and
baseUrl on every model, and auth comes from env vars / auth storage.
Relax validation so custom models under built-in providers don't need
redundant baseUrl, apiKey, or api fields. Inherit them from the first
built-in model for that provider.
fixes #2921
---------
Co-authored-by: Mario Zechner <badlogicgames@gmail.com >
2026-04-14 20:32:18 +02:00
..
2026-03-14 04:18:28 +01:00
2026-03-30 15:56:37 +02:00
2026-04-04 21:28:38 +02:00
2026-03-30 12:43:34 +02:00
2026-04-03 20:14:12 +02:00
2026-03-29 21:08:50 +02:00
2026-03-29 21:08:50 +02:00
2026-03-18 01:12:11 +01:00
2026-03-23 02:02:42 +01:00
2026-03-29 21:08:50 +02:00
2026-03-29 21:08:50 +02:00
2026-04-03 20:14:12 +02:00
2026-03-30 12:43:34 +02:00
2026-03-04 08:55:30 +01:00
2026-04-14 20:19:11 +02:00
2026-03-14 05:36:21 +01:00
2026-03-19 08:34:52 +01:00
2026-03-24 20:09:43 +01:00
2026-01-06 11:59:09 +01:00
2026-01-31 23:24:10 +01:00
2026-02-02 00:23:12 +01:00
2026-03-27 00:47:40 +01:00
2026-03-29 21:08:50 +02:00
2026-03-06 16:57:14 +01:00
2026-03-04 08:53:33 +01:00
2026-03-29 21:08:50 +02:00
2026-03-27 03:36:57 +01:00
2026-03-29 21:06:22 +02:00
2026-03-29 13:00:46 +02:00
2026-01-24 01:43:34 +01:00
2026-03-29 21:08:50 +02:00
2026-03-29 21:08:50 +02:00
2026-03-28 22:10:34 +01:00
2026-03-19 21:40:55 +01:00
2026-03-31 13:49:57 +02:00
2026-01-16 00:31:53 +01:00
2026-02-12 21:28:06 +01:00
2026-03-25 22:15:19 +01:00
2026-03-22 21:48:34 +01:00
2026-03-22 21:48:34 +01:00
2026-04-03 20:14:12 +02:00
2026-04-08 18:46:40 +02:00
2026-03-27 04:00:21 +01:00
2026-03-25 22:18:58 +01:00
2026-03-20 11:56:15 +01:00
2026-04-03 20:14:12 +02:00
2026-04-14 20:32:18 +02:00
2026-03-20 10:00:57 +01:00
2026-03-20 19:36:06 +01:00
2026-02-12 21:28:06 +01:00
2026-04-14 20:20:14 +02:00
2026-03-14 05:36:21 +01:00
2026-01-13 17:53:11 +01:00
2026-03-31 13:49:57 +02:00
2026-01-16 12:08:57 +01:00
2026-03-29 21:08:50 +02:00
2025-12-09 14:44:13 +01:00
2026-03-07 14:34:27 +01:00
2026-02-04 13:27:54 +01:00
2026-03-29 21:08:50 +02:00
2026-03-20 12:12:18 +01:00
2026-03-23 02:02:42 +01:00
2026-04-05 21:24:32 +02:00
2026-03-14 05:36:21 +01:00
2026-03-20 01:55:30 +01:00
2026-03-20 01:55:30 +01:00
2026-02-01 19:03:38 +01:00
2026-02-17 00:08:32 +01:00
2026-04-03 20:14:12 +02:00
2026-03-23 02:02:42 +01:00
2026-03-22 21:21:29 +01:00
2025-12-22 00:23:01 +01:00
2026-03-22 04:20:38 +01:00
2026-03-23 02:33:52 +01:00
2026-03-29 21:08:50 +02:00
2026-01-13 13:03:04 +01:00
2026-03-31 14:41:50 +02:00
2026-03-27 03:10:13 +01:00
2026-04-05 23:28:49 +02:00
2026-03-30 15:56:37 +02:00
2026-03-28 22:25:06 +01:00
2025-12-05 11:59:39 +01:00
2026-03-29 21:08:50 +02:00