Fix Pydantic deprecation warnings and Jinja2 crash
- Replace class-based Config with model_config = ConfigDict() in all Pydantic models - Fix Jinja2 crash by ensuring all messages have content key that is never None - Enhanced message cleaning in generate_chat and generate_chat_stream to create copies and ensure content is always a string - Add final safety check in chat_completions endpoint for content handling
Showing
Please
register
or
sign in
to comment