From b9e1d07d67713bd774aa49967b2d5062aea36af4 Mon Sep 17 00:00:00 2001 From: Hemang Sarkar Date: Wed, 12 Feb 2025 09:49:28 +0100 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index abedc03..9520fac 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,13 @@ To integrate the Proxy with your AI agent, you’ll need to modify how your clie client = OpenAI( http_client=Client( headers={ - "Invariant-Authorization": "Bearer " + "Invariant-Authorization": "Bearer your-invariant-api-key" }, ), - base_url="https://explorer.invariantlabs.ai/api/v1/proxy//openai", + base_url="https://explorer.invariantlabs.ai/api/v1/proxy/{add-your-dataset-name-here}/openai", ) - + # If a dataset with the given name already doesn't exist in Invariant Explorer, this will create the dataset + # before adding the traces to it. # Make API requests to OpenAI using the client as usual. ### **🔹 Anthropic Integration** @@ -49,12 +50,14 @@ To integrate the Proxy with your AI agent, you’ll need to modify how your clie client = Anthropic( http_client=Client( headers={ - "Invariant-Authorization": "Bearer " + "Invariant-Authorization": "Bearer your-invariant-api-key" }, ), - base_url="https://explorer.invariantlabs.ai/api/v1/proxy//anthropic", + base_url="https://explorer.invariantlabs.ai/api/v1/proxy/{add-your-dataset-name-here}/anthropic", ) - + + # If a dataset with the given name already doesn't exist in Invariant Explorer, this will create the dataset + # before adding the traces to it. # Make API requests to Anthropic using the client as usual. ### Run