@assistant-ui/react 0.5.85 → 0.5.86

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -4100,9 +4100,6 @@ var streamUtils = {
4100
4100
  streamPartDecoderStream
4101
4101
  };
4102
4102
 
4103
- // src/runtimes/edge/useEdgeRuntime.ts
4104
-
4105
-
4106
4103
  // src/runtimes/edge/streams/assistantDecoderStream.ts
4107
4104
  function assistantDecoderStream() {
4108
4105
  const toolCallNames = /* @__PURE__ */ new Map();
@@ -4282,8 +4279,10 @@ var splitLocalRuntimeOptions = (options) => {
4282
4279
  // src/runtimes/edge/useEdgeRuntime.ts
4283
4280
  var useEdgeRuntime = (options) => {
4284
4281
  const { localRuntimeOptions, otherOptions } = splitLocalRuntimeOptions(options);
4285
- const [adapter] = _react.useState.call(void 0, () => new EdgeChatAdapter(otherOptions));
4286
- return useLocalRuntime(adapter, localRuntimeOptions);
4282
+ return useLocalRuntime(
4283
+ new EdgeChatAdapter(otherOptions),
4284
+ localRuntimeOptions
4285
+ );
4287
4286
  };
4288
4287
 
4289
4288
  // src/runtimes/local/shouldContinue.tsx