-
What is your question?Hello, Thanks for the great project! I'm trying to add a custom endpoint from a python flask application. I want to integrate AWS's bedrock and RAG workflows into a custom app. I'm able to add the flask application like so:
The flask app:
More DetailsHere are some logs:
What is the main subject of your question?Documentation, Endpoints ScreenshotsNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Thanks for checking out the project! Your custom endpoint has to be OpenAI compatible as much as possible. This is no small feat but there are a few projects on github that attempt to do this. As for RAG, I hope to add my own implementation today, although it won't use bedrock. |
Beta Was this translation helpful? Give feedback.
-
Could you point me towards these projects? It doesn't really matter to me how I format the response, I just want them to come up in the UI. |
Beta Was this translation helpful? Give feedback.
-
For example if I look at the openai docs - https://platform.openai.com/docs/api-reference/chat/create This is an example response:
I checked it with curl and python. |
Beta Was this translation helpful? Give feedback.
-
I think the answer is here - https://github.com/openai/openai-python/blob/main/src/openai/_streaming.py And then to use an SSE library specific to your framework (so flask for me) https://flask-sse.readthedocs.io/en/latest/quickstart.html Thanks for the tips! When I get it figured out I'll post back with the solution! |
Beta Was this translation helpful? Give feedback.
-
Hello! So I haven't been able to figure out the streaming response, but since I don't need to stream it doesn't really matter to me. (Personally. I'm sure its great and matters to others!) Flask App
Librechat config
I think the important part is to set Thanks again! Its a great project and I'm excited to get started on presets and assistants next! |
Beta Was this translation helpful? Give feedback.
Hello!
So I haven't been able to figure out the streaming response, but since I don't need to stream it doesn't really matter to me. (Personally. I'm sure its great and matters to others!)
Flask App