优化全局注入dict_data
This commit is contained in:
24
backend/ai/migrations/0003_aimodel_model_type.py
Normal file
24
backend/ai/migrations/0003_aimodel_model_type.py
Normal 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="模型类型",
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -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="模型标识")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user