forked from open-webui/open-webui
		
	Deleted unused checks
This commit is contained in:
		
							parent
							
								
									8962d948cd
								
							
						
					
					
						commit
						eecc7f3529
					
				
					 1 changed files with 0 additions and 12 deletions
				
			
		|  | @ -223,18 +223,6 @@ if ENV == "prod" and RUNNING_ON_K8S == "": | ||||||
|         OLLAMA_BASE_URL = "http://host.docker.internal:11434" |         OLLAMA_BASE_URL = "http://host.docker.internal:11434" | ||||||
|     else: |     else: | ||||||
|         OLLAMA_BASE_URL = "http://ollama-service.open-webui.svc.cluster.local:11434" |         OLLAMA_BASE_URL = "http://ollama-service.open-webui.svc.cluster.local:11434" | ||||||
|      |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| def is_running_in_kubernetes(): |  | ||||||
|     return 'KUBERNETES_SERVICE_HOST' in os.environ |  | ||||||
| 
 |  | ||||||
| # Setze EMV auf True, wenn in Kubernetes |  | ||||||
| if is_running_in_kubernetes(): |  | ||||||
|     os.environ['EMV'] = 'True' |  | ||||||
|     print("Läuft in Kubernetes, EMV gesetzt auf True.") |  | ||||||
| else: |  | ||||||
|     print("Läuft nicht in Kubernetes.") |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| OLLAMA_BASE_URLS = os.environ.get("OLLAMA_BASE_URLS", "") | OLLAMA_BASE_URLS = os.environ.get("OLLAMA_BASE_URLS", "") | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jannik S
						Jannik S