diff --git a/apps/application/migrations/0025_alter_application_prologue.py b/apps/application/migrations/0025_alter_application_prologue.py new file mode 100644 index 00000000000..8fcae8245cd --- /dev/null +++ b/apps/application/migrations/0025_alter_application_prologue.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.18 on 2025-01-22 09:53 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('application', '0024_applicationaccesstoken_language'), + ] + + operations = [ + migrations.AlterField( + model_name='application', + name='prologue', + field=models.CharField(default='', max_length=40960, verbose_name='开场白'), + ), + ] diff --git a/apps/application/models/application.py b/apps/application/models/application.py index 0f611cea88d..8e6200d0706 100644 --- a/apps/application/models/application.py +++ b/apps/application/models/application.py @@ -42,7 +42,7 @@ class Application(AppModelMixin): id = models.UUIDField(primary_key=True, max_length=128, default=uuid.uuid1, editable=False, verbose_name="主键id") name = models.CharField(max_length=128, verbose_name="应用名称") desc = models.CharField(max_length=512, verbose_name="引用描述", default="") - prologue = models.CharField(max_length=4096, verbose_name="开场白", default="") + prologue = models.CharField(max_length=40960, verbose_name="开场白", default="") dialogue_number = models.IntegerField(default=0, verbose_name="会话数量") user = models.ForeignKey(User, on_delete=models.DO_NOTHING) model = models.ForeignKey(Model, on_delete=models.SET_NULL, db_constraint=False, blank=True, null=True)