diff --git a/requirements.txt b/requirements.txt index 33dffec..a93465b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ chromadb langchain-ollama PyJWT dotenv +UnleashClient \ No newline at end of file diff --git a/unleash_client.py b/unleash_client.py new file mode 100644 index 0000000..58b18cf --- /dev/null +++ b/unleash_client.py @@ -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)) \ No newline at end of file