The issue is likely because useChat from ai/react does not expose a data property by default—data (or feedbackStream in your case) isn’t a valid return key from useChat. Instead, useChat provides properties like messages, append, reload, isLoading, etc. If you’re trying to handle streaming or response content separately, you’ll need to manage that logic within your API handler or modify how you’re consuming the append() response rather than expecting a data field from the hook directly.