From a1748ad55036f26e1c00cf159cdf504d6b2a2905 Mon Sep 17 00:00:00 2001 From: Anthony Monaco Date: Tue, 11 Nov 2025 20:06:44 -0700 Subject: [PATCH] Documentation Code Example corrections (#16502) * Update quick_start.md changed -D to -d * Update users.md Changed in a number of locations: "budget_duration": 10s, to "budget_duration": "10s", * Update users.md Changed all 10s to 30s to keep in line with the example --- docs/my-website/docs/proxy/guardrails/quick_start.md | 2 +- docs/my-website/docs/proxy/users.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/my-website/docs/proxy/guardrails/quick_start.md b/docs/my-website/docs/proxy/guardrails/quick_start.md index 86911c53a86..c392ee60a60 100644 --- a/docs/my-website/docs/proxy/guardrails/quick_start.md +++ b/docs/my-website/docs/proxy/guardrails/quick_start.md @@ -541,7 +541,7 @@ guardrails: curl -X POST 'http://0.0.0.0:4000/team/update' \ -H 'Authorization: Bearer sk-1234' \ -H 'Content-Type: application/json' \ --D '{ +-d '{ "team_id": "4198d93c-d375-4c83-8d5a-71e7c5473e50", "metadata": {"guardrails": {"modify_guardrails": false}} }' diff --git a/docs/my-website/docs/proxy/users.md b/docs/my-website/docs/proxy/users.md index 721207e3c83..3e0e00dfa52 100644 --- a/docs/my-website/docs/proxy/users.md +++ b/docs/my-website/docs/proxy/users.md @@ -127,7 +127,7 @@ curl 'http://0.0.0.0:4000/team/new' \ --data-raw '{ "team_alias": "my-new-team_4", "members_with_roles": [{"role": "admin", "user_id": "5c4a0aa3-a1e1-43dc-bd87-3c2da8382a3a"}], - "budget_duration": 10s, + "budget_duration": "30s", }' ``` @@ -253,7 +253,7 @@ curl 'http://0.0.0.0:4000/user/new' \ --data-raw '{ "team_id": "core-infra", # [OPTIONAL] "max_budget": 10, - "budget_duration": 10s, + "budget_duration": "30s", }' ``` @@ -334,7 +334,7 @@ curl 'http://0.0.0.0:4000/key/generate' \ --data-raw '{ "team_id": "core-infra", # [OPTIONAL] "max_budget": 10, - "budget_duration": 10s, + "budget_duration": "30s", }' ``` @@ -495,7 +495,7 @@ curl 'http://0.0.0.0:4000/user/new' \ --header 'Content-Type: application/json' \ --data-raw '{ "max_budget": 10, - "budget_duration": 10s, # 👈 KEY CHANGE + "budget_duration": "30s", # 👈 KEY CHANGE }' ``` @@ -507,7 +507,7 @@ curl 'http://0.0.0.0:4000/key/generate' \ --header 'Content-Type: application/json' \ --data-raw '{ "max_budget": 10, - "budget_duration": 10s, # 👈 KEY CHANGE + "budget_duration": "30s", # 👈 KEY CHANGE }' ``` @@ -520,7 +520,7 @@ curl 'http://0.0.0.0:4000/team/new' \ --header 'Content-Type: application/json' \ --data-raw '{ "max_budget": 10, - "budget_duration": 10s, # 👈 KEY CHANGE + "budget_duration": "30s", # 👈 KEY CHANGE }' ```