Streaming from HttpApi
So I am getting somewhere with my
Now, I need to support a streaming response.
I have a service that calls my remote LangChain service, and that returns a stream :
Have tried a few ways to define my endpoint and implementation:
Does not even transpile. Have had a good go at sorting out the errors:
How can I accomplish this? The samples provide no examples of streaming.
HttpApi stuff. Got a basic API working.Now, I need to support a streaming response.
I have a service that calls my remote LangChain service, and that returns a stream :
Have tried a few ways to define my endpoint and implementation:
Does not even transpile. Have had a good go at sorting out the errors:
TS2322: Type Effect<Stream<string, never, never>, never, never> is not assignable to type Effect<readonly string[], HttpApiDecodeError, never>
How can I accomplish this? The samples provide no examples of streaming.
