From 897170ab15dc2d136004f52bcb89a9fa096452ea Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Sun, 26 Nov 2023 01:55:59 -0800 Subject: [PATCH] Use single db migration script for transcribe model, related updates --- .../database/migrations/0021_merge_20231126_0650.py | 12 ------------ ...py => 0021_speechtotextmodeloptions_and_more.py} | 13 ++++++++++--- 2 files changed, 10 insertions(+), 15 deletions(-) delete mode 100644 src/khoj/database/migrations/0021_merge_20231126_0650.py rename src/khoj/database/migrations/{0020_speechtotextmodeloptions_and_more.py => 0021_speechtotextmodeloptions_and_more.py} (68%) diff --git a/src/khoj/database/migrations/0021_merge_20231126_0650.py b/src/khoj/database/migrations/0021_merge_20231126_0650.py deleted file mode 100644 index 78fd2e52..00000000 --- a/src/khoj/database/migrations/0021_merge_20231126_0650.py +++ /dev/null @@ -1,12 +0,0 @@ -# Generated by Django 4.2.7 on 2023-11-26 06:50 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("database", "0020_reflectivequestion"), - ("database", "0020_speechtotextmodeloptions_and_more"), - ] - - operations: list = [] diff --git a/src/khoj/database/migrations/0020_speechtotextmodeloptions_and_more.py b/src/khoj/database/migrations/0021_speechtotextmodeloptions_and_more.py similarity index 68% rename from src/khoj/database/migrations/0020_speechtotextmodeloptions_and_more.py rename to src/khoj/database/migrations/0021_speechtotextmodeloptions_and_more.py index 1185d298..c3e3c41d 100644 --- a/src/khoj/database/migrations/0020_speechtotextmodeloptions_and_more.py +++ b/src/khoj/database/migrations/0021_speechtotextmodeloptions_and_more.py @@ -1,11 +1,11 @@ -# Generated by Django 4.2.7 on 2023-11-22 08:51 +# Generated by Django 4.2.7 on 2023-11-26 09:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ - ("database", "0019_alter_googleuser_family_name_and_more"), + ("database", "0020_reflectivequestion"), ] operations = [ @@ -30,6 +30,13 @@ class Migration(migrations.Migration): migrations.AlterField( model_name="chatmodeloptions", name="chat_model", - field=models.CharField(default="gpt-4", max_length=200), + field=models.CharField(default="mistral-7b-instruct-v0.1.Q4_0.gguf", max_length=200), + ), + migrations.AlterField( + model_name="chatmodeloptions", + name="model_type", + field=models.CharField( + choices=[("openai", "Openai"), ("offline", "Offline")], default="offline", max_length=200 + ), ), ]