Skip to content

Commit 029eea0

Browse files
authored
Merge pull request #161 from mindsdb/mind-deprecate
Deprecate minds
2 parents ad61311 + 3df0fc3 commit 029eea0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mindsdb_sdk/utils/mind.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import warnings
12
from pydantic import BaseModel, Field
23
from typing import List, Optional
34
from uuid import uuid4
@@ -92,6 +93,12 @@ def create_mind(
9293
Returns:
9394
Mind: Mind entity
9495
"""
96+
warnings.simplefilter('always', DeprecationWarning) # turn off filter
97+
warnings.warn(
98+
'Minds in python SDK are deprecated. Use minds SDK instead (`pip install minds-sdk`)',
99+
category=DeprecationWarning
100+
)
101+
warnings.simplefilter('default', DeprecationWarning)
95102

96103
url = f"{base_url.rstrip('/')}/minds"
97104
headers = {"Authorization": f"Bearer {api_key}"}

0 commit comments

Comments
 (0)