Route requests only with parameters ZDR endpoints declare, and list them

The gpt-5.6 family's zero-data-retention endpoints declare
max_completion_tokens, so sending max_tokens under require_parameters
excluded every ZDR route and returned HTTP 404 for the whole family.
The cap is retired: the strict schema, the finish_reason check and the
64 KiB read cap already bound the response.

The model fields now offer the provider's public ZDR catalog filtered
by the exact conditions completions are routed under (live endpoint,
strict structured outputs), fetched server-side, cached for an hour,
and served at GET /api/models; the inputs stay free text so an unlisted
model remains usable when the catalog is unreachable.
This commit is contained in:
Lars Nolden
2026-09-12 22:33:34 +02:00
parent 588c16ad19
commit ec99434002
13 changed files with 284 additions and 54 deletions
+3 -1
View File
@@ -9,7 +9,7 @@ import {
} from "lucide-react";
import type { State } from "./api";
import { APIError } from "./api";
import { ErrorMessage, Field, Modal } from "./ui";
import { ErrorMessage, Field, Modal, ModelOptions } from "./ui";
import type { Mutate } from "./ui";
export function Settings({ state, mutate }: { state: State; mutate: Mutate }) {
const [model, setModel] = useState(state.settings.model);
@@ -362,7 +362,9 @@ export function Settings({ state, mutate }: { state: State; mutate: Mutate }) {
required
value={model}
onChange={(e) => setModel(e.target.value)}
list="verified-models"
/>
<ModelOptions id="verified-models" />
</Field>
<Field
label="Private names"