feat(ts-sdk): add LiteLLM as LLM provider (#5830)

Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
Rod Boev
2026-06-25 15:52:46 +05:30
committed by GitHub
co-authored by kartik-mem0
parent 3d06006f36
commit 9269a0ad6e
6 changed files with 211 additions and 1 deletions
@@ -92,6 +92,11 @@ jest.mock("../src/llms/deepseek", () => ({
.fn()
.mockImplementation((config) => ({ type: "deepseek-llm", config })),
}));
jest.mock("../src/llms/litellm", () => ({
LiteLLM: jest
.fn()
.mockImplementation((config) => ({ type: "litellm-llm", config })),
}));
jest.mock("../src/vector_stores/qdrant", () => ({
Qdrant: jest
@@ -206,6 +211,7 @@ describe("LLMFactory", () => {
["langchain"],
["lmstudio"],
["deepseek"],
["litellm"],
])("creates LLM for provider '%s'", (provider) => {
expect(() => LLMFactory.create(provider, dummyLLMConfig)).not.toThrow();
});