fix(catalog): declared signingEndpoint on spec-level AnthropicCompat

- Runtime already honored spec compat signingEndpoint via applyCompatOverrides and generated models.json emits it; the spec interface never declared it, breaking typecheck for explicit opaque-proxy overrides (#6717 remediation path).
- Moved the resolved-view doc onto the spec field; ResolvedAnthropicCompat keeps only officialEndpoint as resolved-exclusive.
This commit is contained in:
can1357
2026-07-27 05:03:29 +02:00
parent 733f20d963
commit d32545874d
+14 -11
View File
@@ -471,6 +471,20 @@ export interface AnthropicCompat {
* blocks instead of normal `tool_use` calls.
*/
escapeBuiltinToolNames?: boolean;
/**
* The configured endpoint enforces Anthropic's signature protocol on
* replayed thinking blocks — either the official API itself or a proxy
* that forwards to it (GitHub Copilot, ZenMux, Cloudflare AI Gateway's
* `/anthropic` route, Google Vertex's `publishers/anthropic/…`).
* Downstream transforms strip stale cross-model thinking signatures on
* these endpoints so the signing proxy doesn't 400 with
* `Invalid signature in thinking block` (#4297), and adaptive-thinking
* models keep the interleaved-thinking beta on them (#6717). Known hosts
* are auto-detected from provider id and baseUrl; set this to mark an
* opaque signing proxy the URL list can't recognize. Superset of
* {@link ResolvedAnthropicCompat.officialEndpoint}.
*/
signingEndpoint?: boolean;
}
/**
@@ -704,17 +718,6 @@ export type ResolvedAnthropicCompat = Required<AnthropicCompat> & {
* env headers, and cache-TTL shaping without per-request URL parsing.
*/
officialEndpoint: boolean;
/**
* The configured endpoint enforces Anthropic's signature protocol on
* replayed thinking blocks — either the official API itself or a proxy
* that forwards to it (GitHub Copilot, ZenMux, Cloudflare AI Gateway's
* `/anthropic` route, Google Vertex's `publishers/anthropic/…`).
* Downstream transforms strip stale cross-model thinking signatures on
* these endpoints so the signing proxy doesn't 400 with
* `Invalid signature in thinking block` (#4297). Superset of
* {@link officialEndpoint}.
*/
signingEndpoint: boolean;
};
/**