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
I used the GitHub search to try to find a similar issue and didn't find one.
I searched the Marvin documentation for this issue.
Bug summary
I encountered an error while working with complex types - it seems that using nested types with lists will break the schema. Including the ComplexType causes an error response "Invalid schema for function".
Reproduction
frompydanticimportBaseModelfromtypingimportListclassSimpleType(BaseModel):
name: strvalue: strclassComplexType(BaseModel):
name: strvalue: List[SimpleType]
classMarvinParseResult(BaseModel):
simple_type: SimpleTypecomplex_type: ComplexType# Comment this out and it passes
Error
'Error code: 400 - {\'error\': {\'message\': "Invalid schema for function \'FormatResponse\'. Please ensure it is a valid JSON Schema.", \'type\': \'invalid_request_error\', \'param\': \'tools[0].function.parameters\', \'code\': \'invalid_function_parameters\'}}
First check
Bug summary
I encountered an error while working with complex types - it seems that using nested types with lists will break the schema. Including the ComplexType causes an error response "Invalid schema for function".
Reproduction
Error
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: