/** * Synthetic (backend-proxied) model capability inference for the agent bridge. * * Extracted verbatim from `agent-bridge.ts`: given a backend `AllowedModel`, * infer the spectral `Model` fields (context window, thinking-level map, * OpenAI-completions compat flags) used when registering the synthetic proxy * providers with spectral's `ModelRegistry`. Pure functions — no bridge state. */ import type { Api, Model } from "../../sdk/ai/types.js"; import type { AllowedModel } from "../../relay/models-fetch.js"; /** * Synthetic provider names registered with spectral's `ModelRegistry`. They route * 100% of inference traffic through the backend (`${backendUrl}/v1`), which * authenticates with the machine JWT and forwards to the upstream provider * with centrally-managed API keys. * * Two providers (rather than one): `spectral-proxy-openai` for upstream catalog * models (OpenRouter, DeepSeek, OpenAI, etc.), and * `spectral-proxy-user-model` for team-registered built-in UserModel entries. * Both use the OpenAI-compatible `/chat/completions` request shape. */ export declare const SPECTRAL_PROXY_OPENAI = "spectral-proxy-openai"; export declare const SPECTRAL_PROXY_USER_MODEL = "spectral-proxy-user-model"; export declare function inferSyntheticContextWindow(model: AllowedModel): number; export declare function inferSyntheticThinkingLevelMap(model: AllowedModel): Model["thinkingLevelMap"] | undefined; export declare function inferSyntheticOpenAICompat(model: AllowedModel): Model<"openai-completions">["compat"] | undefined; //# sourceMappingURL=synthetic-model.d.ts.map