assistant-ui
assistant-ui copied to clipboard
Module '"assistant-stream"' has no exported member 'DataStreamResponse'.
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);
}
Is the docs plainly wrong or out of date?
Thanks for reporting! DataStreamResponse is now ObjectStreamResponse