fix: support multipart content arrays in ChatMessage model for KiloCode compatibility
- Updated ChatMessage.content to accept Union[str, List[Dict]] - Added field_validator to convert multipart content arrays to strings - Handles modern OpenAI API format where content is an array of objects - Fixes 422 validation errors with clients like KiloCode that send multipart messages
Showing
Please
register
or
sign in
to comment