Skip to content

Commit 16e7d0d

Browse files
updated API key params to be optional
1 parent 153465a commit 16e7d0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

langchain_minds/tools.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class AIMindDataSource(BaseModel):
3535
"""
3636

3737
name: str = Field(default=None, description="Name of the data source")
38-
minds_api_key: SecretStr = Field(
38+
minds_api_key: Optional[SecretStr] = Field(
3939
default=None, description="API key for the Minds API"
4040
)
4141
engine: Optional[str] = Field(
@@ -132,7 +132,7 @@ class AIMindAPIWrapper(BaseModel):
132132
"""
133133

134134
name: str = Field(description="Name of the Mind")
135-
minds_api_key: SecretStr = Field(
135+
minds_api_key: Optional[SecretStr] = Field(
136136
default=None, description="API key for the Minds API"
137137
)
138138
datasources: Optional[List[AIMindDataSource]] = Field(

0 commit comments

Comments
 (0)