Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/application/serializers/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class SimplateRequest(serializers.Serializer):
min_value=0,
max_value=1024,
label=_("Historical chat records"))
prologue = serializers.CharField(required=False, allow_null=True, allow_blank=True, max_length=102400,
prologue = serializers.CharField(required=False, allow_null=True, allow_blank=True, max_length=40960,
label=_("Opening remarks"))
knowledge_id_list = serializers.ListSerializer(required=False, child=serializers.UUIDField(required=True),
allow_null=True,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from max_length=102400 to max_length=40960 in the prologue field seems reasonable if you want to expand the character limit. However, ensure that this new limit will be sufficient for your needs and does not lead to unnecessary data storage. There are no other immediate issues with the provided code.

Expand Down
Loading