Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kenny-statsig committed Nov 11, 2024
1 parent 6ed01dc commit 64da7ca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,21 @@
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](https://www.statsig.com).

## Getting Started
1. Install the library `pip install azureai-statsig`
2. Initialize the main AzureAI interface along with the internal Statsig service
```python
AzureAI.initialize(<STATSIG_SERVER_KEY>, StatsigOptions(tier="development"))
```
3. Initialize the AzureAI client
```python
client = ModelClient(<DEPLOYMENT_ENDPOINT_URL>, <DEPLOYMENT_KEY>)
```
4. Call the API
```python
response = client.complete([
SystemMessage(content="You are a helpful assistant."),
UserMessage(content="Give me 5 good reasons why I should exercise every day.")
])
```

0 comments on commit 64da7ca

Please sign in to comment.