-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
SlideDeck AI supports several LLMs from different providers via LangChain. This requires a different LangChain package to be installed for each provider.
The proposal is to introduce LiteLLM as a replacement. On one hand, it will provide a uniform API to access all LLMs, reducing code footprint. On the other hand, the software dependencies and build times will also decrease.
Addressing this issue requires to look at the following parts:
helpers/llm_helper.py
: All LLM-related code can be found here. The functions should be replaced with a single function that uses LiteLLM.app.py
: Here,StreamlitChatMessageHistory
,HumanMessage
, andChatPromptTemplate
components depend on LangChain. The last one is easy to replace, use string.format()
. ForHumanMessage
, the role of the message is to be checked. The key challenge would be to implement something like StreamlitChatMessageHistory and add/update/delete from it when required.
The changes should be tested in a freshly created environment with no LangChain installed. Also, need to make sure that the LiteLLM integration with Ollama is also working (for offline models).
sairampillai
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed