UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

45 lines 1.35 kB
import { i as OpenClawConfig } from "./types.openclaw-DBHlrrVj.js"; import { s as ModelDefinitionConfig } from "./types.models-O5iWV16x.js"; //#region extensions/cloudflare-ai-gateway/onboard.d.ts /** * Builds the minimal config patch for provider setup and default model aliasing. */ declare function buildCloudflareAiGatewayConfigPatch(params: { accountId: string; gatewayId: string; }): { models: { providers: { "cloudflare-ai-gateway": { baseUrl: string; api: "anthropic-messages"; models: ModelDefinitionConfig[]; }; }; }; agents: { defaults: { models: { "cloudflare-ai-gateway/claude-sonnet-4-6": { alias: string; }; }; }; }; }; /** * Applies provider model config while preserving existing agent model aliases. */ declare function applyCloudflareAiGatewayProviderConfig(cfg: OpenClawConfig, params?: { accountId?: string; gatewayId?: string; }): OpenClawConfig; /** * Applies Cloudflare AI Gateway config and makes its default model primary. */ declare function applyCloudflareAiGatewayConfig(cfg: OpenClawConfig, params?: { accountId?: string; gatewayId?: string; }): OpenClawConfig; //#endregion export { applyCloudflareAiGatewayProviderConfig as n, buildCloudflareAiGatewayConfigPatch as r, applyCloudflareAiGatewayConfig as t };