Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit c0b6dad

Browse files
Add OPENAI_API_KEY as required by QdrantSearchTool (#461)
1 parent 0595339 commit c0b6dad

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crewai_tools/tools/qdrant_vector_search_tool/qdrant_search_tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
FieldCondition = Any
1616
MatchValue = Any
1717

18-
from crewai.tools import BaseTool
18+
from crewai.tools import BaseTool, EnvVar
1919
from pydantic import BaseModel, Field
2020

2121

@@ -75,6 +75,9 @@ class QdrantVectorSearchTool(BaseTool):
7575
description="A custom embedding function to use for vectorization. If not provided, the default model will be used.",
7676
)
7777
package_dependencies: List[str] = ["qdrant-client"]
78+
env_vars: List[EnvVar] = [
79+
EnvVar(name="OPENAI_API_KEY", description="API key for OpenAI", required=True)
80+
]
7881

7982
def __init__(self, **kwargs):
8083
super().__init__(**kwargs)

0 commit comments

Comments
 (0)