Integrating an arbitrary API that deals with model selection and conversation handling #3013
Replies: 1 comment 1 reply
-
The frontend keeps track of many facets of the conversation state, not just the AI interactions, like previous conversations, available models, messages, presets, users, formatting of messages specific to the project, etc. All of this is very tightly coupled to the backend. You can use any OpenAI-like API with this project, and could likely achieve exactly what you want, but the frontend doesn't do this alone. Most of the AI API interaction is handled by the backend, which tracks the turn of messages and what conversations they're tied to, and the relationship between messages (parent/child). You can see the many different examples that are known to work with LibreChat here: Not sure if this completely answers your question. To summarize, you can think of the entire project working much like ChatGPT but with the ability to connect virtually every AI provider out there, especially OpenAI-like, that is, API that conforms to the OpenAI API specs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The subject gave the body away almost.
I need a front-end, but I don't need the front-end to deal with model selection, conversation handling, etc.
I need the front-end to integrate with an arbitrary API using JWT-based auth.
All the front-end needs to know is: How to make a POST request to generate the next LLM turn.
Is this possible with LibreChat?
Beta Was this translation helpful? Give feedback.
All reactions