Skip to content

llm_seed

django_spire.contrib.seeding.field.seed.llm_seed

LlmFieldSeed

Bases: BaseFieldSeed

Source code in django_spire/contrib/seeding/field/seed/llm_seed.py
def __init__(
    self, field_type: type, prompt: str | None = None, locale: str | list[str] = 'en_CA'
) -> None:
    self.field_type = field_type
    self.prompt = prompt
    self.locale = locale

field_type = field_type instance-attribute

prompt = prompt instance-attribute

locale = locale instance-attribute

generate_value

Source code in django_spire/contrib/seeding/field/seed/llm_seed.py
def generate_value(self, seed_index: int) -> Any:
    # COMMENT THIS
    _ = seed_index

    return None