Dukotah
24f40c48a2
web: add a neutral "Custom OpenAI-compatible" preset for LLM profiles
...
Closes #648 .
A self-hosted or relayed OpenAI-compatible endpoint has to be configured
today by picking the generic "openai" format and knowing the base-URL
convention, which the README documents but the form does not guide. The
common failures are a base URL that stops short of /v1 or one with
/chat/completions pasted on the end.
The preset is UI-only: it selects the existing openai format and shows
the expected base-URL shape and a one-line hint. No wire format, no
schema change, no vendor host, and nothing is prefilled into the value,
so an empty base URL still saves as empty and existing profiles are
untouched. Because the preset is not stored, it is re-derived when a
profile reopens: an openai profile pointing somewhere other than
api.openai.com shows the preset.
Tests, written before the change:
- agent: regression tests pinning the base-URL normalization the preset
relies on (bare /v1, trailing slash, a pasted /chat/completions
endpoint, whitespace, a path-prefixed gateway, host:port) and pinning
that an empty base URL still resolves to the public endpoint.
- web: unit tests for the derivation helper, following the
src/lib/*.test.mjs convention, wired into package.json and CI.
2026-11-29 00:01:51 +01:00
..
2026-10-12 06:26:51 +02:00
2026-11-28 10:00:55 +01:00
2026-11-27 22:19:40 +01:00
2026-11-27 22:19:40 +01:00
2026-11-14 14:19:13 +01:00
2026-11-26 20:42:19 +07:00
2026-11-20 22:18:53 +01:00
2026-11-20 05:35:54 +01:00
2026-11-14 01:02:16 +01:00
2026-11-20 05:35:54 +01:00
2026-11-12 12:35:06 +01:00
2026-11-22 23:00:41 +01:00
2026-11-14 01:02:16 +01:00
2026-11-28 09:33:24 +01:00
2026-11-28 09:33:24 +01:00
2026-11-20 22:18:53 +01:00
2026-11-17 13:04:36 -05:00
2026-11-17 15:50:00 -05:00
2026-11-28 03:03:19 +01:00
2026-11-27 22:19:40 +01:00
2026-11-27 22:19:43 +01:00
2026-11-27 22:20:09 +01:00
2026-11-19 14:23:29 -03:00
2026-10-08 23:14:34 +02:00
2026-11-28 03:19:30 +01:00
2026-11-18 22:40:21 +01:00
2026-11-26 21:35:20 +01:00
2026-11-21 19:54:18 +00:00
2026-10-08 23:14:34 +02:00
2026-10-08 23:14:34 +02:00
2026-11-27 01:08:45 +01:00
2026-11-27 01:08:45 +01:00
2026-11-27 01:08:46 +01:00
2026-10-08 23:14:34 +02:00
2026-11-20 22:18:53 +01:00
2026-11-12 20:48:34 +01:00
2026-11-28 03:03:19 +01:00
2026-11-25 13:24:45 +07:00
2026-11-17 23:44:36 +01:00
2026-11-28 23:07:45 +01:00
2026-10-12 07:30:27 +02:00
2026-07-26 04:27:45 -04:00
2026-11-21 22:00:22 +03:00
2026-11-28 03:19:30 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:19:30 +01:00
2026-11-28 19:24:53 +01:00
2026-11-20 10:03:52 +00:00
2026-11-17 06:14:31 +00:00
2026-11-28 10:00:55 +01:00
2026-11-20 18:48:06 +01:00
2026-11-27 09:57:23 -05:00
2026-11-27 09:57:23 -05:00
2026-11-23 23:12:41 +01:00
2026-11-28 10:00:55 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-22 23:00:41 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:54 +01:00
2026-11-20 05:35:54 +01:00
2026-11-22 23:00:41 +01:00
2026-10-12 07:29:59 +02:00
2026-11-27 01:08:46 +01:00
2026-11-27 01:08:46 +01:00
2026-11-27 01:08:45 +01:00
2026-10-12 06:25:35 +02:00
2026-11-20 22:18:53 +01:00
2026-11-21 21:30:58 +03:00
2026-11-20 22:18:53 +01:00
2026-11-21 21:30:58 +03:00
2026-11-21 20:58:25 +03:00
2026-11-28 10:00:55 +01:00
2026-11-28 03:19:30 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:19:30 +01:00
2026-11-27 01:39:33 +01:00
2026-11-27 01:39:33 +01:00
2026-11-26 21:35:20 +01:00
2026-11-27 22:19:43 +01:00
2026-11-28 03:19:30 +01:00
2026-11-19 14:23:29 -03:00
2026-11-24 01:13:15 +01:00
2026-11-24 01:13:15 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 10:00:55 +01:00
2026-11-15 22:26:21 +01:00
2026-11-15 22:26:21 +01:00
2026-11-25 13:24:45 +07:00
2026-11-26 21:35:20 +01:00
2026-11-15 01:23:56 +01:00
2026-10-12 06:45:21 +02:00
2026-11-26 21:35:20 +01:00
2026-11-21 08:14:56 +01:00
2026-11-21 08:10:52 +01:00
2026-11-28 10:00:55 +01:00
2026-11-28 10:00:55 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-14 14:19:13 +01:00
2026-11-26 21:35:20 +01:00
2026-08-25 09:40:05 -04:00
2026-11-08 17:11:43 +01:00
2026-11-22 18:27:43 +08:00
2026-11-29 00:01:51 +01:00
2026-10-08 23:14:34 +02:00
2026-08-25 11:39:24 -04:00
2026-11-17 12:56:13 +00:00
2026-11-28 09:33:24 +01:00
2026-11-18 00:41:18 -06:00
2026-11-18 00:41:18 -06:00
2026-11-15 00:57:13 +01:00
2026-11-20 10:03:52 +00:00
2026-10-12 06:26:51 +02:00
2026-11-19 14:23:29 -03:00
2026-11-20 05:35:55 +01:00
2026-08-24 19:29:00 +08:00
2026-11-21 08:10:52 +01:00
2026-11-20 22:54:57 +01:00
2026-11-22 23:00:41 +01:00
2026-11-14 01:02:16 +01:00
2026-09-07 11:21:50 -04:00
2026-11-15 15:32:07 +01:00
2026-11-15 15:32:07 +01:00
2026-11-20 05:35:54 +01:00
2026-09-10 21:42:25 +08:00
2026-11-21 22:00:22 +03:00
2026-11-26 20:42:19 +07:00
2026-11-20 05:35:55 +01:00
2026-11-25 13:24:45 +07:00
2026-10-21 14:46:56 +02:00
2026-11-11 00:34:55 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:03:19 +01:00
2026-11-28 03:03:19 +01:00
2026-11-10 17:45:11 +01:00
2026-11-27 22:19:40 +01:00
2026-11-20 06:38:10 +01:00
2026-11-26 11:38:19 +00:00
2026-11-10 09:46:49 +01:00
2026-11-26 21:35:20 +01:00
2026-11-14 13:46:03 +01:00
2026-11-28 03:03:19 +01:00
2026-11-02 09:05:03 +03:00
2026-10-08 23:14:34 +02:00
2026-11-28 19:24:53 +01:00
2026-10-08 23:14:34 +02:00
2026-11-21 08:50:26 +01:00
2026-11-28 10:00:55 +01:00
2026-11-23 17:22:16 +03:00
2026-11-23 17:22:16 +03:00
2026-11-23 22:24:53 +01:00
2026-11-25 13:24:45 +07:00
2026-11-12 14:46:44 +01:00
2026-11-19 14:23:29 -03:00
2026-11-11 21:59:09 +01:00
2026-11-08 18:15:33 +01:00
2026-11-26 21:35:20 +01:00
2026-11-14 23:30:06 +01:00
2026-11-26 21:35:20 +01:00
2026-11-14 23:30:06 +01:00
2026-11-21 08:10:52 +01:00
2026-08-29 21:55:27 +08:00
2026-11-28 10:00:55 +01:00
2026-11-14 14:19:13 +01:00