From 8792b8c7fa92b51cdd02d89621cba237c8296511 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 27 May 2024 18:18:58 -0700 Subject: [PATCH] docs - rename end user -> customer --- docs/my-website/docs/proxy/users.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/my-website/docs/proxy/users.md b/docs/my-website/docs/proxy/users.md index 556ae7f92..ec2be9cdc 100644 --- a/docs/my-website/docs/proxy/users.md +++ b/docs/my-website/docs/proxy/users.md @@ -13,7 +13,7 @@ Requirements: You can set budgets at 3 levels: - For the proxy - For an internal user -- For an end-user +- For a customer (end-user) - For a key - For a key (model specific budgets) @@ -173,7 +173,7 @@ curl --location 'http://localhost:4000/chat/completions' \ ``` - + Use this to budget `user` passed to `/chat/completions`, **without needing to create a key for every user** @@ -452,7 +452,7 @@ curl --location 'http://0.0.0.0:4000/key/generate' \ ``` - + :::info @@ -477,12 +477,12 @@ curl --location 'http://0.0.0.0:4000/budget/new' \ ``` -#### Step 2. Create `End-User` with Budget +#### Step 2. Create `Customer` with Budget -We use `budget_id="free-tier"` from Step 1 when creating this new end user +We use `budget_id="free-tier"` from Step 1 when creating this new customers ```shell -curl --location 'http://0.0.0.0:4000/end_user/new' \ +curl --location 'http://0.0.0.0:4000/customer/new' \ --header 'Authorization: Bearer sk-1234' \ --header 'Content-Type: application/json' \ --data '{ @@ -492,7 +492,7 @@ curl --location 'http://0.0.0.0:4000/end_user/new' \ ``` -#### Step 3. Pass end user id in `/chat/completions` requests +#### Step 3. Pass `user_id` id in `/chat/completions` requests Pass the `user_id` from Step 2 as `user="palantir"`