Statsig wrapped Azure AI inference library
Project description
Statsig Azure AI
Azure AI library with a built-in Statsig SDK.
Statsig helps you move faster with Feature Gates (Feature Flags) and Dynamic Configs. It also allows you to run A/B tests to validate your new features and understand their impact on your KPIs. If you're new to Statsig, create an account at statsig.com.
Getting Started
- Install the library
pip install azureai-statsig - Initialize the main AzureAI interface along with the internal Statsig service
AzureAI.initialize(<STATSIG_SERVER_KEY>, StatsigOptions(tier="development"))
- Create the AzureAI inference client
client = AzureAI.get_model_client_from_endpoint(<DEPLOYMENT_ENDPOINT_URL>, <DEPLOYMENT_KEY>)
Optionally, use a Statsig Dynamic Config to provide default configurations
client = AzureAI.get_model_client("azureai_model", <DEPLOYMENT_ENDPOINT_URL>, <DEPLOYMENT_KEY>)
- Call the API
response = client.complete([
SystemMessage(content="You are a helpful assistant."),
UserMessage(content="Give me 5 good reasons why I should exercise every day.")
])
References
- Azure AI SDK documentation
- Statsig SDK documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
azureai_statsig-0.1.0.tar.gz
(5.2 kB
view details)
File details
Details for the file azureai_statsig-0.1.0.tar.gz.
File metadata
- Download URL: azureai_statsig-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a218ea445ac1fb83cc00ef8de29f732b1c22a419eeae5e50944435c98034c46d
|
|
| MD5 |
925415a9873093262805d266226f12d5
|
|
| BLAKE2b-256 |
6f70fa36d877892e2feac8bba4c0fbd134c999b86c1a51318ac3f392d61a1db3
|