Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Response Streaming #100

Open
limcheekin opened this issue May 15, 2023 · 4 comments
Open

Support Response Streaming #100

limcheekin opened this issue May 15, 2023 · 4 comments

Comments

@limcheekin
Copy link

Hi there,

Did the runtime interface client support streaming response as per announced?
https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/

If no, appreciate your sharing is there any near-term plan to work on it?

Thank you.

@devesch
Copy link

devesch commented Nov 6, 2023

I'd like to see the streaming response in python too!!

@pprados
Copy link

pprados commented Dec 15, 2023

With tools like LLM, the support is important. Else, it's not possible to use a lambda to return a stream of text.

@nicolasvo
Copy link

nicolasvo commented Jul 9, 2024

@pprados aws-lambda-web-adapter enables response streaming from a python lambda.

I implemented an example: https://github.com/nicolasvo/ollama-lambda/tree/master/lambda (see Dockerfile.fastapi and
main.py).

However, this is done without lambda function handler. So if you need it, it might not be a solution.

@limcheekin
Copy link
Author

@nicolasvo Thanks for sharing. Unfortunately I don't have time to look into it now as I'm working on higher priorities task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants