From 64da7cae0bd166bc7c10fc85eaa7bbc9c114be0a Mon Sep 17 00:00:00 2001 From: Kenny Yi Date: Mon, 11 Nov 2024 11:35:02 -0800 Subject: [PATCH] update README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index b0a9ef0..868388f 100644 --- a/README.md +++ b/README.md @@ -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(, StatsigOptions(tier="development")) +``` +3. Initialize the AzureAI client +```python +client = ModelClient(, ) +``` +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.") +]) +``` \ No newline at end of file