优化全局注入dict_data

This commit is contained in:
XIE7654
2025-07-16 13:56:02 +08:00
parent baa650ea64
commit 3fe272ffca
11 changed files with 219 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
# Generated by Django 5.2.1 on 2025-07-16 03:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("ai", "0002_alter_chatrole_knowledge_alter_chatrole_tools"),
]
operations = [
migrations.AddField(
model_name="aimodel",
name="model_type",
field=models.CharField(
blank=True,
db_comment="模型类型",
max_length=32,
null=True,
verbose_name="模型类型",
),
),
]

View File

@@ -46,6 +46,7 @@ class AIModel(CoreModel):
on_delete=models.CASCADE,
db_comment='API 秘钥编号', verbose_name="API 秘钥编号"
)
model_type = models.CharField(max_length=32, db_comment="模型类型", verbose_name="模型类型", blank=True, null=True)
platform = models.CharField(max_length=32, db_comment="模型平台", verbose_name="模型平台")
model = models.CharField(max_length=64, db_comment="模型标识", verbose_name="模型标识")