assistant-ui icon indicating copy to clipboard operation
assistant-ui copied to clipboard

Module '"assistant-stream"' has no exported member 'DataStreamResponse'.

Open upwindchange opened this issue 1 year ago • 2 comments

docs here https://www.assistant-ui.com/docs/runtimes/data-stream:

import { DataStreamResponse } from "assistant-stream";

export async function POST(request: Request) {
  const { messages, tools, system } = await request.json();

  // Process the request with your AI provider
  const stream = await processWithAI({
    messages,
    tools,
    system,
  });

  return new DataStreamResponse(stream);
}

upwindchange avatar Nov 30 '25 13:11 upwindchange

Is the docs plainly wrong or out of date?

upwindchange avatar Nov 30 '25 13:11 upwindchange

Thanks for reporting! DataStreamResponse is now ObjectStreamResponse

ShobhitPatra avatar Nov 30 '25 17:11 ShobhitPatra