ARTEX/web
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
..
.husky chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
media chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
public web: ship the logo at display size, and serve WebP when the browser takes it 2026-11-22 14:44:51 +00:00
scripts feat(web): restore browser history navigation across console views (#641) 2026-11-28 23:43:43 +01:00
src web: add a neutral "Custom OpenAI-compatible" preset for LLM profiles 2026-11-29 00:01:51 +01:00
.gitignore chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
biome.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
components.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
LICENSE chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
next.config.mjs Translate all Chinese text to English 2026-10-08 23:14:34 +02:00
package-lock.json chore(web): bump source-map-js and baseline-browser-mapping past their DoS advisories 2026-11-21 08:33:38 +01:00
package.json web: add a neutral "Custom OpenAI-compatible" preset for LLM profiles 2026-11-29 00:01:51 +01:00
postcss.config.mjs chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tsconfig.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tsconfig.scripts.json chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00