openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
26 lines • 788 B
TypeScript
import { s as ModelDefinitionConfig } from "./types.models-O5iWV16x.js";
//#region extensions/cloudflare-ai-gateway/catalog-provider.d.ts
type CloudflareAiGatewayCredential = {
type?: string;
keyRef?: unknown;
key?: unknown;
metadata?: {
accountId?: unknown;
gatewayId?: unknown;
};
} | undefined;
/**
* Returns a provider catalog entry when credentials and Gateway metadata are
* complete enough to construct an Anthropic-compatible base URL.
*/
declare function buildCloudflareAiGatewayCatalogProvider(params: {
credential: CloudflareAiGatewayCredential;
envApiKey?: string;
}): {
baseUrl: string;
api: "anthropic-messages";
apiKey: string;
models: ModelDefinitionConfig[];
} | null;
//#endregion
export { buildCloudflareAiGatewayCatalogProvider as t };