Sonar code smell sure

This commit is contained in:
shamoon
2025-09-14 16:17:53 -07:00
parent 9837407879
commit 4318f7dac3
2 changed files with 0 additions and 12 deletions

View File

@@ -25,7 +25,6 @@ class Migration(migrations.Migration):
field=models.CharField( field=models.CharField(
blank=True, blank=True,
max_length=128, max_length=128,
null=True,
verbose_name="Sets the LLM API key", verbose_name="Sets the LLM API key",
), ),
), ),
@@ -36,7 +35,6 @@ class Migration(migrations.Migration):
blank=True, blank=True,
choices=[("openai", "OpenAI"), ("ollama", "Ollama")], choices=[("openai", "OpenAI"), ("ollama", "Ollama")],
max_length=32, max_length=32,
null=True,
verbose_name="Sets the LLM backend", verbose_name="Sets the LLM backend",
), ),
), ),
@@ -47,7 +45,6 @@ class Migration(migrations.Migration):
blank=True, blank=True,
choices=[("openai", "OpenAI"), ("huggingface", "Huggingface")], choices=[("openai", "OpenAI"), ("huggingface", "Huggingface")],
max_length=32, max_length=32,
null=True,
verbose_name="Sets the LLM embedding backend", verbose_name="Sets the LLM embedding backend",
), ),
), ),
@@ -57,7 +54,6 @@ class Migration(migrations.Migration):
field=models.CharField( field=models.CharField(
blank=True, blank=True,
max_length=32, max_length=32,
null=True,
verbose_name="Sets the LLM embedding model", verbose_name="Sets the LLM embedding model",
), ),
), ),
@@ -67,7 +63,6 @@ class Migration(migrations.Migration):
field=models.CharField( field=models.CharField(
blank=True, blank=True,
max_length=32, max_length=32,
null=True,
verbose_name="Sets the LLM model", verbose_name="Sets the LLM model",
), ),
), ),
@@ -77,7 +72,6 @@ class Migration(migrations.Migration):
field=models.CharField( field=models.CharField(
blank=True, blank=True,
max_length=128, max_length=128,
null=True,
verbose_name="Sets the LLM endpoint, optional", verbose_name="Sets the LLM endpoint, optional",
), ),
), ),

View File

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