mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-13 12:19:28 -05:00
Rename config
This commit is contained in:
parent
d31b4ced63
commit
7f37832ea0
@ -737,7 +737,7 @@ class DocumentViewSet(
|
||||
):
|
||||
return HttpResponseForbidden("Insufficient permissions")
|
||||
|
||||
if settings.AI_CLASSIFICATION_ENABLED:
|
||||
if settings.AI_ENABLED:
|
||||
cached = get_llm_suggestion_cache(doc.pk, backend=settings.LLM_BACKEND)
|
||||
|
||||
if cached:
|
||||
|
@ -1271,9 +1271,9 @@ OUTLOOK_OAUTH_ENABLED = bool(
|
||||
################################################################################
|
||||
# AI Settings #
|
||||
################################################################################
|
||||
AI_CLASSIFICATION_ENABLED = __get_boolean("PAPERLESS_AI_CLASSIFICATION_ENABLED", "NO")
|
||||
AI_ENABLED = __get_boolean("PAPERLESS_AI_ENABLED", "NO")
|
||||
LLM_BACKEND = os.getenv("PAPERLESS_LLM_BACKEND", "openai") # or "ollama"
|
||||
LLM_API_KEY = os.getenv("PAPERLESS_LLM_API_KEY")
|
||||
LLM_MODEL = os.getenv("PAPERLESS_LLM_MODEL")
|
||||
LLM_API_KEY = os.getenv("PAPERLESS_LLM_API_KEY")
|
||||
OPENAI_URL = os.getenv("PAPERLESS_OPENAI_URL", "https://api.openai.com")
|
||||
OLLAMA_URL = os.getenv("PAPERLESS_OLLAMA_URL", "http://localhost:11434")
|
||||
|
Loading…
x
Reference in New Issue
Block a user