Skip to main content

Statsig wrapped Azure AI inference library

Project description

Statsig Azure AI

tests

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

  1. Install the library pip install azureai-statsig
  2. Initialize the main AzureAI interface along with the internal Statsig service
AzureAI.initialize(<STATSIG_SERVER_KEY>, StatsigOptions(tier="development"))
  1. 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>)
  1. 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

Project details


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)

Uploaded Source

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

Hashes for azureai_statsig-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a218ea445ac1fb83cc00ef8de29f732b1c22a419eeae5e50944435c98034c46d
MD5 925415a9873093262805d266226f12d5
BLAKE2b-256 6f70fa36d877892e2feac8bba4c0fbd134c999b86c1a51318ac3f392d61a1db3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page