Code Formatting (#1828)

This commit is contained in:
Dev Khant
2024-09-07 22:39:28 +05:30
committed by GitHub
parent 6a54d27286
commit a972d2fb07
66 changed files with 208 additions and 138 deletions

View File

@@ -1,10 +1,11 @@
from unittest.mock import Mock, patch
import httpx
import pytest
from unittest.mock import Mock, patch
from mem0.llms.azure_openai import AzureOpenAILLM
from mem0.configs.llms.base import BaseLlmConfig
from mem0.llms.azure_openai import AzureOpenAILLM
MODEL = "gpt-4o" # or your custom deployment name
TEMPERATURE = 0.7

View File

@@ -1,7 +1,10 @@
import pytest
from unittest.mock import Mock, patch
from mem0.llms.groq import GroqLLM
import pytest
from mem0.configs.llms.base import BaseLlmConfig
from mem0.llms.groq import GroqLLM
@pytest.fixture
def mock_groq_client():

View File

@@ -1,8 +1,10 @@
import pytest
from unittest.mock import Mock, patch
from mem0.llms import litellm
import pytest
from mem0.configs.llms.base import BaseLlmConfig
from mem0.llms import litellm
@pytest.fixture
def mock_litellm():

View File

@@ -1,9 +1,12 @@
import pytest
from unittest.mock import Mock, patch
from mem0.llms.ollama import OllamaLLM
import pytest
from mem0.configs.llms.base import BaseLlmConfig
from mem0.llms.ollama import OllamaLLM
from mem0.llms.utils.tools import ADD_MEMORY_TOOL
@pytest.fixture
def mock_ollama_client():
with patch('mem0.llms.ollama.Client') as mock_ollama:

View File

@@ -1,7 +1,10 @@
import pytest
from unittest.mock import Mock, patch
from mem0.llms.openai import OpenAILLM
import pytest
from mem0.configs.llms.base import BaseLlmConfig
from mem0.llms.openai import OpenAILLM
@pytest.fixture
def mock_openai_client():

View File

@@ -1,7 +1,10 @@
import pytest
from unittest.mock import Mock, patch
from mem0.llms.together import TogetherLLM
import pytest
from mem0.configs.llms.base import BaseLlmConfig
from mem0.llms.together import TogetherLLM
@pytest.fixture
def mock_together_client():