Skip to content

Commit 5772b02

Browse files
authored
fix: Application opening statement character limit (#2075)
1 parent 0711ed5 commit 5772b02

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.18 on 2025-01-22 09:53
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('application', '0024_applicationaccesstoken_language'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='application',
15+
name='prologue',
16+
field=models.CharField(default='', max_length=40960, verbose_name='开场白'),
17+
),
18+
]

apps/application/models/application.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Application(AppModelMixin):
4242
id = models.UUIDField(primary_key=True, max_length=128, default=uuid.uuid1, editable=False, verbose_name="主键id")
4343
name = models.CharField(max_length=128, verbose_name="应用名称")
4444
desc = models.CharField(max_length=512, verbose_name="引用描述", default="")
45-
prologue = models.CharField(max_length=4096, verbose_name="开场白", default="")
45+
prologue = models.CharField(max_length=40960, verbose_name="开场白", default="")
4646
dialogue_number = models.IntegerField(default=0, verbose_name="会话数量")
4747
user = models.ForeignKey(User, on_delete=models.DO_NOTHING)
4848
model = models.ForeignKey(Model, on_delete=models.SET_NULL, db_constraint=False, blank=True, null=True)

0 commit comments

Comments
 (0)