Anthony Powell
Anthony Powell
@AvidDabbler copy paste the code from [this comment](https://github.com/vercel-labs/ai/issues/199#issuecomment-1605245593) into a new file, then import and use StreamingTextResponse from your new file. To get huggingfacestream working, you can likely tweak the...
@yarapolana My action looks just like it does at the beginning of this post. It is on its own route called `routes/api.chat.ts` and in the frontend code, that uses the...
@yarapolana I can give you my code snippets. Here is my usage of the chat hook ```tsx const { messages, append, reload, stop, isLoading, input, setInput } = useChat({ api:...
@yarapolana I ran into the same issue! very confusing. I think actions in a page route behave slightly differently than on their own route
I haven't tested this yet but the ServerNodePolyfillOptions added in https://github.com/remix-run/remix/releases/tag/remix%401.19.0 look promising
Nope, that option does not appear to do anything useful in local dev at least
@mindblight note for my example to work, you need to reimplement OpenAIStream and StreamingTextResponse like I've done at the top of this issue. This "fix" still works for the latest...
@mindblight will give this a try later, thanks! Was really hoping to avoid using my patch at work. This looks more maintainable