Skip to content

Commit

Permalink
fix: Application opening statement character limit
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Jan 22, 2025
1 parent 34b626d commit bcc2e2d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions apps/application/migrations/0025_alter_application_prologue.py
Original file line number Diff line number Diff line change
@@ -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='开场白'),
),
]
2 changes: 1 addition & 1 deletion apps/application/models/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bcc2e2d

Please sign in to comment.