| 
														
															@@ -6,6 +6,9 @@ from werkzeug.exceptions import Unauthorized 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true': 
														 | 
														
														 | 
														
															 if not os.environ.get("DEBUG") or os.environ.get("DEBUG").lower() != 'true': 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     from gevent import monkey 
														 | 
														
														 | 
														
															     from gevent import monkey 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     monkey.patch_all() 
														 | 
														
														 | 
														
															     monkey.patch_all() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if os.environ.get("VECTOR_STORE") == 'milvus': 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        import grpc.experimental.gevent 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        grpc.experimental.gevent.init_gevent() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import logging 
														 | 
														
														 | 
														
															 import logging 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import json 
														 | 
														
														 | 
														
															 import json 
														 |