Skip to content

Commit

Permalink
final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Dec 6, 2023
1 parent 58b131d commit 5de94f9
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
from typing import Any, Dict, List, Optional

from cohere import AsyncClient, Client, COHERE_API_URL
from cohere import COHERE_API_URL, AsyncClient, Client
from haystack import Document, component, default_to_dict

from cohere_haystack.embedders.utils import get_async_response, get_response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
from typing import Any, Dict, List, Optional

from cohere import AsyncClient, Client, COHERE_API_URL
from cohere import COHERE_API_URL, AsyncClient, Client
from haystack import component, default_to_dict

from cohere_haystack.embedders.utils import get_async_response, get_response
Expand Down
4 changes: 1 addition & 3 deletions integrations/cohere/src/cohere_haystack/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
import sys
from typing import Any, Callable, Dict, List, Optional, cast

from haystack import DeserializationError, component, default_from_dict, default_to_dict
from haystack.lazy_imports import LazyImport

from cohere import COHERE_API_URL, Client
from cohere.responses import Generations
from haystack import DeserializationError, component, default_from_dict, default_to_dict

logger = logging.getLogger(__name__)

Expand Down
1 change: 0 additions & 1 deletion integrations/cohere/tests/test_cohere_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from cohere_haystack.generator import CohereGenerator


pytestmark = pytest.mark.generators


Expand Down
5 changes: 1 addition & 4 deletions integrations/cohere/tests/test_document_embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
#
# SPDX-License-Identifier: Apache-2.0
import os
from unittest.mock import MagicMock

import numpy as np
import pytest
from haystack import Document
from cohere import COHERE_API_URL
from haystack import Document

from cohere_haystack.embedders.document_embedder import CohereDocumentEmbedder


pytestmark = pytest.mark.embedders


Expand Down
2 changes: 0 additions & 2 deletions integrations/cohere/tests/test_text_embedder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
#
# SPDX-License-Identifier: Apache-2.0
import os
from unittest.mock import MagicMock

import pytest
from cohere import COHERE_API_URL

from cohere_haystack.embedders.text_embedder import CohereTextEmbedder


pytestmark = pytest.mark.embedders


Expand Down

0 comments on commit 5de94f9

Please sign in to comment.