fix(reranker): support nested llm config in LLMReranker for non-OpenAI providers (#4405)

This commit is contained in:
Kartik
2026-03-19 15:26:00 +05:30
committed by GitHub
parent 0c4d0290cb
commit 348f44b632
6 changed files with 385 additions and 15 deletions
+11
View File
@@ -0,0 +1,11 @@
from unittest.mock import MagicMock, patch
import pytest
@pytest.fixture
def mock_llm():
with patch("mem0.reranker.llm_reranker.LlmFactory") as mock_factory:
mock_llm_instance = MagicMock()
mock_factory.create.return_value = mock_llm_instance
yield mock_factory, mock_llm_instance