You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEFAULT_PROMPT_TEMPLATE='Use your database tools to answer the user\'s question: {{question}}'
@@ -25,9 +23,6 @@ def __init__(
25
23
self.api=client.api
26
24
self.client=client
27
25
self.project='mindsdb'
28
-
29
-
ifnotutils.validate_mind_name(name):
30
-
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
31
26
32
27
self.name=name
33
28
self.model_name=model_name
@@ -78,8 +73,8 @@ def update(
78
73
"""
79
74
data= {}
80
75
81
-
ifnotutils.validate_mind_name(name):
82
-
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
266
+
ifnameisnotNone:
267
+
utils.validate_mind_name(name)
275
268
276
269
ifreplace:
277
270
try:
@@ -316,9 +309,4 @@ def drop(self, name: str):
316
309
:param name: name of the mind
317
310
"""
318
311
319
-
ifnotutils.validate_mind_name(name):
320
-
raiseexc.MindNameInvalid("""
321
-
Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters.
raiseexc.MindNameInvalid("Mind name should start with a letter and contain only letters, numbers or underscore, with a maximum of 32 characters. Spaces are not allowed.")
0 commit comments