Integrating LibreChat's Frontend with Custom Python Backend Using OpenAI's API #2839
Unanswered
gjgeorgiadis
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Make your Python API an OpenAI compatible API, and add it as a Custom Endpoint: That would be the best/easiest/most seamless move. You can test compatibility with the openai-node library, which we use: https://github.com/openai/openai-node |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I have a chatbot programmed in Python that utilizes OpenAI's API. Currently, the frontend is a simple HTML page, which lacks both aesthetic appeal and functionality such as maintaining query history and a search function.
I am exploring the possibility of using LibreChat's frontend with my existing backend. My current backend involves an algorithm that sorts documents to find the ones closest to the user's query, edits the query to add any missing definitions/clarifications, and then feeds it to GPT-4.
I attempted to replicate my chatbot in LibreChat using an OpenAI assistant, but the results were poor. I suspect this is because my custom algorithm sorts documents to find the ones closest to the user's query and edits the query to add any missing definitions/clarifications before feeding it to GPT4.
Questions:
Any advice or pointers would be greatly appreciated!
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions