@merit-systems/echo-react-sdk 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -136351,21 +136351,11 @@ function useEchoChatConfig() {
136351
136351
 
136352
136352
  // src/hooks/useChat.ts
136353
136353
  var import_react13 = require("@ai-sdk/react");
136354
- var import_ai = require("ai");
136355
136354
  function createInMemoryChatTransport() {
136356
136355
  const chatFn = useEchoChatConfig();
136357
136356
  return {
136358
- async sendMessages(params) {
136359
- const { messages, abortSignal, ...rest } = params;
136360
- const coreMessages = (0, import_ai.convertToModelMessages)(
136361
- messages.map(({ role, parts, metadata }) => ({ role, parts, metadata }))
136362
- );
136363
- return await chatFn({
136364
- uiMessages: messages,
136365
- modelMessages: coreMessages,
136366
- abortSignal,
136367
- ...rest
136368
- });
136357
+ sendMessages: async (options) => {
136358
+ return chatFn(options);
136369
136359
  },
136370
136360
  async reconnectToStream() {
136371
136361
  return null;