fix: gpt 配置取消长度限制 (#12907)

Co-authored-by: feng <1304903146@qq.com>
pull/12920/head
fit2bot 2024-03-29 18:53:24 +08:00 committed by GitHub
parent 7a6468530f
commit d499b94e04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -75,13 +75,13 @@ class ChatAISettingSerializer(serializers.Serializer):
required=False, label=_('Enable Chat AI')
)
GPT_BASE_URL = serializers.CharField(
max_length=256, allow_blank=True, required=False, label=_('Base Url')
allow_blank=True, required=False, label=_('Base Url')
)
GPT_API_KEY = EncryptedField(
max_length=256, allow_blank=True, required=False, label=_('API Key'),
allow_blank=True, required=False, label=_('API Key'),
)
GPT_PROXY = serializers.CharField(
max_length=256, allow_blank=True, required=False, label=_('Proxy')
allow_blank=True, required=False, label=_('Proxy')
)
GPT_MODEL = serializers.ChoiceField(
default='', choices=GPT_MODEL_CHOICES, label=_("GPT Model"), required=False,