unleash client
This commit is contained in:
		
							parent
							
								
									f2b95935bb
								
							
						
					
					
						commit
						e8040e2ba8
					
				@ -6,3 +6,4 @@ chromadb
 | 
			
		||||
langchain-ollama
 | 
			
		||||
PyJWT
 | 
			
		||||
dotenv
 | 
			
		||||
UnleashClient
 | 
			
		||||
							
								
								
									
										13
									
								
								unleash_client.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								unleash_client.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
from UnleashClient import UnleashClient
 | 
			
		||||
import asyncio
 | 
			
		||||
 | 
			
		||||
client = UnleashClient(
 | 
			
		||||
    url="http://192.168.178.160:30007/api/",
 | 
			
		||||
    app_name="unleash-onboarding-python",
 | 
			
		||||
    custom_headers={'Authorization': 'default:development.6uQIie4GdslTxgYAWVu35sRBjjBMPRRKw6vBj6mFsgFfvdXuy73GgLQg'}) # in production use environment variable
 | 
			
		||||
 | 
			
		||||
client.initialize_client()
 | 
			
		||||
 | 
			
		||||
while True:
 | 
			
		||||
    print(client.is_enabled("crew_ai_integration"))
 | 
			
		||||
    asyncio.run(asyncio.sleep(1))
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user