diff --git a/translator/migrations/0040_alter_kagitranslator_summarization_engine_and_more.py b/translator/migrations/0040_alter_kagitranslator_summarization_engine_and_more.py new file mode 100644 index 0000000..1a7b2b1 --- /dev/null +++ b/translator/migrations/0040_alter_kagitranslator_summarization_engine_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 5.0.6 on 2024-07-22 08:00 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('translator', '0039_kagitranslator'), + ] + + operations = [ + migrations.AlterField( + model_name='kagitranslator', + name='summarization_engine', + field=models.CharField(default='cecil', help_text='Please check https://help.kagi.com/kagi/api/summarizer.html#summarization-engines', max_length=20), + ), + migrations.AlterField( + model_name='kagitranslator', + name='summary_type', + field=models.CharField(default='summary', help_text='Please check https://help.kagi.com/kagi/api/summarizer.html#summary-types', max_length=20), + ), + ] diff --git a/translator/models/kagi.py b/translator/models/kagi.py index ff001f3..ba67297 100644 --- a/translator/models/kagi.py +++ b/translator/models/kagi.py @@ -15,8 +15,8 @@ class KagiTranslator(TranslatorEngine): max_length=255, default="https://kagi.com/api/v0",help_text=_("We'll use fastgpt for the translation and summarise for the summary") ) is_ai = models.BooleanField(default=True) - summarization_engine = models.TextField(max_length=20,default="cecil",help_text="Please check https://help.kagi.com/kagi/api/summarizer.html#summarization-engines") - summary_type = models.TextField(max_length=20,default="summary",help_text="Please check https://help.kagi.com/kagi/api/summarizer.html#summary-types") + summarization_engine = models.CharField(max_length=20,default="cecil",help_text="Please check https://help.kagi.com/kagi/api/summarizer.html#summarization-engines") + summary_type = models.CharField(max_length=20,default="summary",help_text="Please check https://help.kagi.com/kagi/api/summarizer.html#summary-types") translate_prompt = models.TextField( _("Title Translate Prompt"), default=settings.default_title_translate_prompt )