mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-04 05:25:56 +00:00
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. |
||
|---|---|---|
| .. | ||
| .husky | ||
| media | ||
| public | ||
| scripts | ||
| src | ||
| .gitignore | ||
| biome.json | ||
| components.json | ||
| LICENSE | ||
| next.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.mjs | ||
| tsconfig.json | ||
| tsconfig.scripts.json | ||