mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-31 10:37:12 -04:00 
			
		
		
		
	Rename config
This commit is contained in:
		
							parent
							
								
									cfbd5af820
								
							
						
					
					
						commit
						01dc3cc17c
					
				| @ -770,7 +770,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: | ||||
|  | ||||
| @ -1415,9 +1415,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