mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
fix: [#8] remove unnecessary debug check
This commit is contained in:
parent
48b55a4035
commit
fdc50d8c55
|
@ -11,10 +11,6 @@ class ProjectSettings(pydantic_settings.BaseSettings):
|
||||||
extra="ignore",
|
extra="ignore",
|
||||||
)
|
)
|
||||||
|
|
||||||
debug: str = "false"
|
debug: bool = False
|
||||||
jwt_secret_key: pydantic.SecretStr = pydantic.Field(default=..., validation_alias="jwt_secret_key")
|
jwt_secret_key: pydantic.SecretStr = pydantic.Field(default=..., validation_alias="jwt_secret_key")
|
||||||
headers: dict[str, str] = {"Content-Type": "application/json"}
|
headers: dict[str, str] = {"Content-Type": "application/json"}
|
||||||
|
|
||||||
@pydantic.field_validator("debug")
|
|
||||||
def validate_debug(cls, v: str) -> bool:
|
|
||||||
return v.lower() == "true"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user