diff --git a/ai/migrations/0003_alter_aianalysis_model.py b/ai/migrations/0003_alter_aianalysis_model.py new file mode 100644 index 0000000..439e42a --- /dev/null +++ b/ai/migrations/0003_alter_aianalysis_model.py @@ -0,0 +1,18 @@ +# Generated by Django 6.0 on 2026-04-27 12:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ai', '0002_aianalysis_model'), + ] + + operations = [ + migrations.AlterField( + model_name='aianalysis', + name='model', + field=models.TextField(default='deepseek-v4-flash'), + ), + ] diff --git a/ai/models.py b/ai/models.py index 4b170ca..c78802c 100644 --- a/ai/models.py +++ b/ai/models.py @@ -6,7 +6,7 @@ from account.models import User class AIAnalysis(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) provider = models.TextField(default="deepseek") - model = models.TextField(default="deepseek-chat") + model = models.TextField(default="deepseek-v4-flash") data = models.JSONField() system_prompt = models.TextField() user_prompt = models.TextField() diff --git a/flowchart/migrations/0002_alter_flowchartsubmission_ai_model.py b/flowchart/migrations/0002_alter_flowchartsubmission_ai_model.py new file mode 100644 index 0000000..3e07b50 --- /dev/null +++ b/flowchart/migrations/0002_alter_flowchartsubmission_ai_model.py @@ -0,0 +1,18 @@ +# Generated by Django 6.0 on 2026-04-27 12:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('flowchart', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='flowchartsubmission', + name='ai_model', + field=models.CharField(default='deepseek-v4-flash', max_length=50), + ), + ] diff --git a/flowchart/models.py b/flowchart/models.py index 514d47d..18ff263 100644 --- a/flowchart/models.py +++ b/flowchart/models.py @@ -37,7 +37,7 @@ class FlowchartSubmission(models.Model): # 处理信息 ai_provider = models.CharField(max_length=50, default='deepseek') - ai_model = models.CharField(max_length=50, default='deepseek-chat') + ai_model = models.CharField(max_length=50, default='deepseek-v4-flash') processing_time = models.FloatField(null=True, blank=True) # AI处理耗时(秒) evaluation_time = models.DateTimeField(null=True, blank=True) # 评分完成时间