Skip to content

Commit dd8959b

Browse files
committed
updates
1 parent e80dd0d commit dd8959b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

flat_ai/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__title__ = 'flat-ai'
22
__package_name__ = 'flat_ai'
3-
__version__ = '0.3.2'
3+
__version__ = '0.3.3'
44
__description__ = 'F.L.A.T. (Frameworkless LLM Agent Thing) for building AI Agents'
55
__email__ = 'hello@mindsdb.com'
66
__author__ = 'Yours truly Jorge Torres and an LLM'

flat_ai/flat_ai.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,10 @@ def _execute():
159159
}
160160
schema_name = schema_class.__args__[0].__name__+"Array"
161161
# Handle Pydantic models
162-
elif isinstance(schema_class, type) and issubclass(schema_class, BaseModel):
162+
else:
163163
schema = schema_class.model_json_schema()
164164
schema_name = schema_class.__name__
165-
else:
166-
raise ValueError(f"Unsupported schema type: {schema_class}")
165+
167166

168167
messages = self._build_messages(
169168
{

0 commit comments

Comments
 (0)