mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-30 14:52:36 +00:00
Fix lint errors: Remove unused imports
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import logging
|
||||
from typing import List, Optional
|
||||
|
||||
from chromadb.api.types import Documents, EmbeddingFunction, Embeddings
|
||||
|
||||
@@ -9,7 +8,7 @@ logger = logging.getLogger(__name__)
|
||||
class VoyageAIEmbeddingFunction(EmbeddingFunction[Documents]):
|
||||
def __init__(self, api_key: str, model_name: str = "voyage-3"):
|
||||
try:
|
||||
import voyageai
|
||||
import voyageai # noqa: F401
|
||||
except ImportError:
|
||||
raise ValueError(
|
||||
"The voyageai python package is not installed. Please install it with `pip install voyageai`"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import os
|
||||
import pytest
|
||||
from unittest.mock import patch, MagicMock
|
||||
|
||||
from crewai.utilities.embedding_configurator import EmbeddingConfigurator
|
||||
|
||||
Reference in New Issue
Block a user