UNPKG

@assistant-ui/react

Version:

Typescript/React library for AI Chat

17 lines (16 loc) 527 B
"use client"; // src/runtimes/edge/useEdgeRuntime.ts import { useLocalRuntime } from "../index.mjs"; import { EdgeModelAdapter } from "./EdgeModelAdapter.mjs"; import { splitLocalRuntimeOptions } from "../local/LocalRuntimeOptions.mjs"; var useEdgeRuntime = (options) => { const { localRuntimeOptions, otherOptions } = splitLocalRuntimeOptions(options); return useLocalRuntime( new EdgeModelAdapter(otherOptions), localRuntimeOptions ); }; export { useEdgeRuntime }; //# sourceMappingURL=useEdgeRuntime.mjs.map