Fix this migration

This commit is contained in:
shamoon
2025-09-30 10:44:08 -07:00
parent 4b07179b01
commit 6a29b8d0e8
2 changed files with 22 additions and 10 deletions

View File

@@ -292,6 +292,7 @@ class ApplicationConfiguration(AbstractSingletonModel):
llm_embedding_backend = models.CharField(
verbose_name=_("Sets the LLM embedding backend"),
blank=True,
null=True,
max_length=32,
choices=LLMEmbeddingBackend.choices,
)
@@ -299,12 +300,14 @@ class ApplicationConfiguration(AbstractSingletonModel):
llm_embedding_model = models.CharField(
verbose_name=_("Sets the LLM embedding model"),
blank=True,
null=True,
max_length=32,
)
llm_backend = models.CharField(
verbose_name=_("Sets the LLM backend"),
blank=True,
null=True,
max_length=32,
choices=LLMBackend.choices,
)
@@ -312,18 +315,21 @@ class ApplicationConfiguration(AbstractSingletonModel):
llm_model = models.CharField(
verbose_name=_("Sets the LLM model"),
blank=True,
null=True,
max_length=32,
)
llm_api_key = models.CharField(
verbose_name=_("Sets the LLM API key"),
blank=True,
null=True,
max_length=128,
)
llm_endpoint = models.CharField(
verbose_name=_("Sets the LLM endpoint, optional"),
blank=True,
null=True,
max_length=128,
)