# Generated by Codex on 2026-02-26

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("ai_provider", "0001_initial"),
    ]

    operations = [
        migrations.AddField(
            model_name="aiproviderconfig",
            name="api_mode",
            field=models.CharField(
                choices=[
                    ("dual", "Dual (Responses + Chat Fallback)"),
                    ("responses_only", "Responses Only"),
                    ("chat_only", "Chat Completions Only"),
                ],
                default="dual",
                help_text="OpenAI API 模式：dual/responses_only/chat_only",
                max_length=20,
            ),
        ),
        migrations.AddField(
            model_name="aiproviderconfig",
            name="fallback_enabled",
            field=models.BooleanField(
                default=True,
                help_text="dual 模式下是否允许从 Responses 回退到 Chat Completions",
            ),
        ),
    ]
