From df45eba2ff70844b59375183027085729ffe9e14 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 10 Jul 2024 11:44:29 +0300 Subject: [PATCH] model of agent is optional --- mindsdb_sql/parser/dialects/mindsdb/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindsdb_sql/parser/dialects/mindsdb/parser.py b/mindsdb_sql/parser/dialects/mindsdb/parser.py index b450293..8312df6 100644 --- a/mindsdb_sql/parser/dialects/mindsdb/parser.py +++ b/mindsdb_sql/parser/dialects/mindsdb/parser.py @@ -164,7 +164,7 @@ def create_agent(self, p): return CreateAgent( name=p.identifier, - model=params.pop('model'), + model=params.pop('model', None), params=params, if_not_exists=p.if_not_exists_or_empty )