Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
31c305e
added versioning to the API client
MinuraPunchihewa Oct 2, 2025
ec5ba82
removed uses of projects/<project_name> in base URL
MinuraPunchihewa Oct 2, 2025
7e4f8bb
added function to the API client to handle POST with streaming
MinuraPunchihewa Oct 2, 2025
37ea7dd
updated the operations for Minds
MinuraPunchihewa Oct 2, 2025
4d7e669
set the default client version to V1
MinuraPunchihewa Oct 2, 2025
a119233
commented out uses of KBs
MinuraPunchihewa Oct 2, 2025
e583bf0
bumped the major version number
MinuraPunchihewa Oct 2, 2025
397c955
removed the OpenAI SDK dependency
MinuraPunchihewa Oct 2, 2025
c164700
commented out the KnowledgeBase client module
MinuraPunchihewa Oct 2, 2025
07e4122
introduced the overall status field to Minds
MinuraPunchihewa Oct 2, 2025
ae2d48f
made description an optional parameter
MinuraPunchihewa Oct 2, 2025
902ab07
improved base_url parsing
MinuraPunchihewa Oct 3, 2025
96cc693
reverted completions to run through OpenAI
MinuraPunchihewa Oct 3, 2025
0279432
removed unused post_stream() method
MinuraPunchihewa Oct 7, 2025
0796d8e
updated Datasource models and operations
MinuraPunchihewa Oct 7, 2025
c589a56
updated the Mind models and opreations
MinuraPunchihewa Oct 8, 2025
44ea99a
updated the base usage examples
MinuraPunchihewa Oct 8, 2025
b967067
added the function for updating a Datasource
MinuraPunchihewa Oct 8, 2025
e49a839
updated several type hints
MinuraPunchihewa Oct 8, 2025
97248bf
updated base usage to account for async loader
MinuraPunchihewa Oct 8, 2025
354c248
fixed circular imports and added missing params
MinuraPunchihewa Oct 8, 2025
836fd54
fixed unit tests
MinuraPunchihewa Oct 8, 2025
bf94229
fixed integration tests
MinuraPunchihewa Oct 8, 2025
250a2e7
removed unusued examples module
MinuraPunchihewa Oct 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion minds/__about__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = 'minds_sdk'
__package_name__ = 'minds'
__version__ = "1.3.3"
__version__ = "2.0.0"
__description__ = 'An AI-Data Mind is an LLM with the built-in power to answer data questions for Agents'
__email__ = '[email protected]'
__author__ = 'MindsDB Inc'
Expand Down
6 changes: 3 additions & 3 deletions minds/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

class Client:

def __init__(self, api_key, base_url=None):
def __init__(self, api_key, base_url=None, version='v1'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the using of version affects on something in SDK ? for example switching between endpoints or enable/disable KBs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at the moment, Andrey. There is just the one version right now.


self.api = RestAPI(api_key, base_url)
self.api = RestAPI(api_key, base_url, version)

self.datasources = Datasources(self)
self.knowledge_bases = KnowledgeBases(self)
# self.knowledge_bases = KnowledgeBases(self)

self.minds = Minds(self)
2 changes: 1 addition & 1 deletion minds/datasources/datasources.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DatabaseConfig(DatabaseConfigBase):
Used to define datasource before creating it.
"""
engine: str
description: str
description: Union[str, None] = ''
connection_data: Union[dict, None] = {}


Expand Down
Loading
Loading