Update README.md

This commit is contained in:
Hemang Sarkar
2025-02-12 09:29:12 +01:00
committed by GitHub
parent a182f027c5
commit b6916039c6
+7 -6
View File
@@ -12,11 +12,13 @@ Invariant Proxy is a lightweight Docker service that acts as an intermediary bet
## **Getting Started**
To integrate the Proxy with your AI agent, youll need to modify how your client interacts with LLM providers.
### **🔹 OpenAI Integration**
1. **Get an API Key**
1. **Get an Invariant API Key**
Follow the instructions [here](https://explorer.invariantlabs.ai/docs/explorer/Explorer_API/1_client_setup/) to obtain an API key.
2. **Modify OpenAI Client Setup**
### **🔹 OpenAI Integration**
2. To setup an OpenAI key follow the steps [here](https://platform.openai.com/docs/quickstart#create-and-export-an-api-key).
3. **Modify OpenAI Client Setup**
Instead of connecting directly to OpenAI, configure your `OpenAI` client to use the proxy.
```python
@@ -35,10 +37,9 @@ To integrate the Proxy with your AI agent, youll need to modify how your clie
# Make API requests to OpenAI using the client as usual.
### **🔹 Anthropic Integration**
1. **Get an API Key**
Follow the instructions [here](https://explorer.invariantlabs.ai/docs/explorer/Explorer_API/1_client_setup/) to obtain an API key.
2. To setup an Anthropic key follow the steps [here](https://docs.anthropic.com/en/docs/initial-setup#set-your-api-key).
2. **Modify Anthropic Client Setup**
3. **Modify Anthropic Client Setup**
Instead of connecting directly to Anthropic, configure your `Anthropic` client to use the proxy.
```python