Feat: optionally disable password login endpoints (#19113)

* Implement message cleaning before API call

* Filter out empty assistant messages before cleaning

* Update catalan translation.json (#29)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>

* Update main.py

* Update auths.py

* Update Chat.svelte

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
Classic298
2025-11-11 23:07:57 +01:00
committed by GitHub
parent ce19b7120b
commit 6eea0d40ab
2 changed files with 22 additions and 5 deletions

View File

@@ -1124,6 +1124,10 @@ ENABLE_LOGIN_FORM = PersistentConfig(
os.environ.get("ENABLE_LOGIN_FORM", "True").lower() == "true",
)
ENABLE_PASSWORD_AUTH = (
os.environ.get("ENABLE_PASSWORD_AUTH", "True").lower()
== "true"
)
DEFAULT_LOCALE = PersistentConfig(
"DEFAULT_LOCALE",