UNPKG

@earendil-works/pi-ai

Version:

Unified LLM API with automatic model discovery and provider configuration

13 lines • 725 B
import { setBedrockProviderLoader } from "./api/bedrock-converse-stream.lazy.js"; /** * Registers a bedrock loader with a literal dynamic import, for Node bundles * that split at dynamic imports (esbuild `splitting`, Chord's worker base): * the implementation and the AWS SDK land in a chunk loaded on the first * bedrock request, inside the bundle. Without it, pi-ai imports bedrock * through a variable specifier that bundlers cannot follow, so a bundle loads * it from pi-ai's own files. Browser bundles must not import this module. */ export function registerLazyBedrockProvider() { setBedrockProviderLoader(() => import("./api/bedrock-converse-stream.js")); } //# sourceMappingURL=lazy-bedrock-provider.js.map