From 237a66a615cb3988344832bb040a697bf080971c Mon Sep 17 00:00:00 2001 From: mateo Date: Fri, 11 Sep 2026 21:38:12 +0000 Subject: [PATCH] docs: double-quote shell variables in curl header examples Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- README.md | 2 +- .../management_endpoints/project_endpoints.py | 12 +- litellm/anthropic_interface/readme.md | 2 +- litellm/integrations/bitbucket/README.md | 2 +- litellm/integrations/gitlab/README.md | 2 +- litellm/proxy/_lazy_openapi_snapshot.json | 20 +-- .../generic_guardrail_api/example_config.yaml | 4 +- .../health_endpoints/_health_endpoints.py | 6 +- .../customer_endpoints.py | 14 +- .../internal_user_endpoints.py | 12 +- .../key_management_endpoints.py | 16 +- .../management_v1/budgets.py | 2 +- .../management_v1/spend_logs.py | 2 +- ...model_access_group_management_endpoints.py | 16 +- .../organization_endpoints.py | 10 +- .../team_callback_endpoints.py | 8 +- .../management_endpoints/team_endpoints.py | 28 +-- litellm/proxy/proxy_server.py | 14 +- .../spend_management_endpoints.py | 4 +- .../proxy/vector_store_endpoints/endpoints.py | 4 +- .../routing_groups/RoutingGroupUsagePanel.tsx | 2 +- ui/litellm-dashboard/src/lib/http/schema.d.ts | 168 +++++++++--------- 22 files changed, 175 insertions(+), 175 deletions(-) diff --git a/README.md b/README.md index 334b6824117..e23ef223b54 100644 --- a/README.md +++ b/README.md @@ -233,7 +233,7 @@ async with stdio_client(server_params) as (read, write): ```bash curl -X POST 'http://0.0.0.0:4000/v1/chat/completions' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' \ + -H "Authorization: Bearer $LITELLM_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "model": "gpt-4o", diff --git a/enterprise/litellm_enterprise/proxy/management_endpoints/project_endpoints.py b/enterprise/litellm_enterprise/proxy/management_endpoints/project_endpoints.py index 9b0d175f715..ccc6d84bf86 100644 --- a/enterprise/litellm_enterprise/proxy/management_endpoints/project_endpoints.py +++ b/enterprise/litellm_enterprise/proxy/management_endpoints/project_endpoints.py @@ -430,7 +430,7 @@ async def new_project( ```bash curl --location 'http://0.0.0.0:4000/project/new' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' \\ + --header "Authorization: Bearer $LITELLM_API_KEY" \\ --header 'Content-Type: application/json' \\ --data '{ "project_alias": "flight-search-assistant", @@ -457,7 +457,7 @@ async def new_project( ```bash curl --location 'http://0.0.0.0:4000/project/new' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' \\ + --header "Authorization: Bearer $LITELLM_API_KEY" \\ --header 'Content-Type: application/json' \\ --data '{ "project_alias": "hotel-recommendations", @@ -644,7 +644,7 @@ async def update_project( Example: ```bash curl --location 'http://0.0.0.0:4000/project/update' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' \\ + --header "Authorization: Bearer $LITELLM_API_KEY" \\ --header 'Content-Type: application/json' \\ --data '{ "project_id": "project-123", @@ -867,7 +867,7 @@ async def delete_project( Example: ```bash curl --location --request DELETE 'http://0.0.0.0:4000/project/delete' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' \\ + --header "Authorization: Bearer $LITELLM_API_KEY" \\ --header 'Content-Type: application/json' \\ --data '{ "project_ids": ["project-123", "project-456"] @@ -973,7 +973,7 @@ async def project_info( Example: ```bash curl --location 'http://0.0.0.0:4000/project/info?project_id=project-123' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ from litellm.proxy.proxy_server import prisma_client @@ -1042,7 +1042,7 @@ async def list_projects( Example: ```bash curl --location 'http://0.0.0.0:4000/project/list' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ from litellm.proxy.proxy_server import prisma_client diff --git a/litellm/anthropic_interface/readme.md b/litellm/anthropic_interface/readme.md index d9615f200d9..40dc3a6213e 100644 --- a/litellm/anthropic_interface/readme.md +++ b/litellm/anthropic_interface/readme.md @@ -101,7 +101,7 @@ response = client.messages.create( ```bash showLineNumbers title="Example using LiteLLM Proxy Server" curl -L -X POST 'http://0.0.0.0:4000/v1/messages' \ -H 'content-type: application/json' \ --H 'x-api-key: $LITELLM_API_KEY' \ +-H "x-api-key: $LITELLM_API_KEY" \ -H 'anthropic-version: 2023-06-01' \ -d '{ "model": "anthropic-claude", diff --git a/litellm/integrations/bitbucket/README.md b/litellm/integrations/bitbucket/README.md index 103473ac548..b729c0445ef 100644 --- a/litellm/integrations/bitbucket/README.md +++ b/litellm/integrations/bitbucket/README.md @@ -148,7 +148,7 @@ litellm --config config.yaml --detailed_debug ```bash curl -L -X POST 'http://0.0.0.0:4000/v1/chat/completions' \ -H 'Content-Type: application/json' \ --H 'Authorization: Bearer $LITELLM_API_KEY' \ +-H "Authorization: Bearer $LITELLM_API_KEY" \ -d '{ "model": "my-bitbucket-model", "messages": [{"role": "user", "content": "IGNORED"}], diff --git a/litellm/integrations/gitlab/README.md b/litellm/integrations/gitlab/README.md index da06a1f26df..9d5607dd4ae 100644 --- a/litellm/integrations/gitlab/README.md +++ b/litellm/integrations/gitlab/README.md @@ -148,7 +148,7 @@ litellm --config config.yaml --detailed_debug ```bash curl -L -X POST 'http://0.0.0.0:4000/v1/chat/completions' \ -H 'Content-Type: application/json' \ --H 'Authorization: Bearer $LITELLM_API_KEY' \ +-H "Authorization: Bearer $LITELLM_API_KEY" \ -d '{ "model": "my-gitlab-model", "messages": [{"role": "user", "content": "IGNORED"}], diff --git a/litellm/proxy/_lazy_openapi_snapshot.json b/litellm/proxy/_lazy_openapi_snapshot.json index ae8aa736904..7ec13a91565 100644 --- a/litellm/proxy/_lazy_openapi_snapshot.json +++ b/litellm/proxy/_lazy_openapi_snapshot.json @@ -1241,7 +1241,7 @@ "paths": { "/access_group/list": { "get": { - "description": "List all access groups.\n\nReturns a list of all access groups with their model names, deployment counts, shared budget\nand the spend drawn against it.\n\nExample:\n```bash\ncurl -X GET 'http://localhost:4000/access_group/list' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY'\n```\n\nReturns:\n- ListAccessGroupsResponse with all access groups", + "description": "List all access groups.\n\nReturns a list of all access groups with their model names, deployment counts, shared budget\nand the spend drawn against it.\n\nExample:\n```bash\ncurl -X GET 'http://localhost:4000/access_group/list' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\"\n```\n\nReturns:\n- ListAccessGroupsResponse with all access groups", "operationId": "list_access_groups_access_group_list_get", "responses": { "200": { @@ -1268,7 +1268,7 @@ }, "/access_group/new": { "post": { - "description": "Create a new access group containing multiple model names.\n\nAn access group is a named collection of model groups that can be referenced\nby teams/keys for simplified access control.\n\nExample:\n```bash\ncurl -X POST 'http://localhost:4000/access_group/new' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"access_group\": \"production-models\",\n \"model_names\": [\"gpt-4\", \"claude-3-opus\", \"gemini-pro\"]\n }'\n```\n\nParameters:\n- access_group: str - The access group name (e.g., \"production-models\")\n- model_names: List[str] - List of existing model groups to include\n\nReturns:\n- NewModelGroupResponse with the created access group details\n\nRaises:\n- HTTPException 400: If any model names don't exist\n- HTTPException 500: If database operations fail", + "description": "Create a new access group containing multiple model names.\n\nAn access group is a named collection of model groups that can be referenced\nby teams/keys for simplified access control.\n\nExample:\n```bash\ncurl -X POST 'http://localhost:4000/access_group/new' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"access_group\": \"production-models\",\n \"model_names\": [\"gpt-4\", \"claude-3-opus\", \"gemini-pro\"]\n }'\n```\n\nParameters:\n- access_group: str - The access group name (e.g., \"production-models\")\n- model_names: List[str] - List of existing model groups to include\n\nReturns:\n- NewModelGroupResponse with the created access group details\n\nRaises:\n- HTTPException 400: If any model names don't exist\n- HTTPException 500: If database operations fail", "operationId": "create_model_group_access_group_new_post", "requestBody": { "content": { @@ -1315,7 +1315,7 @@ }, "/access_group/{access_group}/budget": { "delete": { - "description": "Clear the shared budget of an access group, leaving the group itself in place.\n\nExample:\n```bash\ncurl -X DELETE 'http://localhost:4000/access_group/production-models/budget' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- DeleteAccessGroupBudgetResponse; budget_deleted is false when there was nothing to clear\n\nRaises:\n- HTTPException 404: If access group not found", + "description": "Clear the shared budget of an access group, leaving the group itself in place.\n\nExample:\n```bash\ncurl -X DELETE 'http://localhost:4000/access_group/production-models/budget' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\"\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- DeleteAccessGroupBudgetResponse; budget_deleted is false when there was nothing to clear\n\nRaises:\n- HTTPException 404: If access group not found", "operationId": "delete_access_group_budget_access_group__access_group__budget_delete", "parameters": [ { @@ -1361,7 +1361,7 @@ ] }, "get": { - "description": "Get the shared budget of an access group, and the spend drawn against it.\n\nExample:\n```bash\ncurl -X GET 'http://localhost:4000/access_group/production-models/budget' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- AccessGroupBudgetResponse; budget is null when the group has no budget set\n\nRaises:\n- HTTPException 404: If access group not found", + "description": "Get the shared budget of an access group, and the spend drawn against it.\n\nExample:\n```bash\ncurl -X GET 'http://localhost:4000/access_group/production-models/budget' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\"\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- AccessGroupBudgetResponse; budget is null when the group has no budget set\n\nRaises:\n- HTTPException 404: If access group not found", "operationId": "get_access_group_budget_access_group__access_group__budget_get", "parameters": [ { @@ -1407,7 +1407,7 @@ ] }, "put": { - "description": "Set or replace the shared budget of an access group. Idempotent.\n\nEvery key that can reach a model in the group draws from this one budget.\n\nExample:\n```bash\ncurl -X PUT 'http://localhost:4000/access_group/production-models/budget' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"max_budget\": 100.0,\n \"budget_duration\": \"30d\"\n }'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n- max_budget: Optional[float] - Requests fail once the group's shared spend exceeds this\n- soft_budget: Optional[float] - Fires an alert when reached; requests still succeed\n- budget_duration: Optional[str] - Frequency of resetting the group's spend (e.g. '30d')\n- budget_id: Optional[str] - Link an existing budget instead of creating one\n\nReturns:\n- AccessGroupBudgetResponse with the stored budget and current spend\n\nRaises:\n- HTTPException 400: If no budget field is given, or budget_duration cannot be parsed\n- HTTPException 404: If access group not found", + "description": "Set or replace the shared budget of an access group. Idempotent.\n\nEvery key that can reach a model in the group draws from this one budget.\n\nExample:\n```bash\ncurl -X PUT 'http://localhost:4000/access_group/production-models/budget' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"max_budget\": 100.0,\n \"budget_duration\": \"30d\"\n }'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n- max_budget: Optional[float] - Requests fail once the group's shared spend exceeds this\n- soft_budget: Optional[float] - Fires an alert when reached; requests still succeed\n- budget_duration: Optional[str] - Frequency of resetting the group's spend (e.g. '30d')\n- budget_id: Optional[str] - Link an existing budget instead of creating one\n\nReturns:\n- AccessGroupBudgetResponse with the stored budget and current spend\n\nRaises:\n- HTTPException 400: If no budget field is given, or budget_duration cannot be parsed\n- HTTPException 404: If access group not found", "operationId": "set_access_group_budget_access_group__access_group__budget_put", "parameters": [ { @@ -1465,7 +1465,7 @@ }, "/access_group/{access_group}/delete": { "delete": { - "description": "Delete an access group.\n\nRemoves the access group from all deployments that have it.\n\nExample:\n```bash\ncurl -X DELETE 'http://localhost:4000/access_group/production-models/delete' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- DeleteModelGroupResponse with deletion details\n\nRaises:\n- HTTPException 404: If access group not found", + "description": "Delete an access group.\n\nRemoves the access group from all deployments that have it.\n\nExample:\n```bash\ncurl -X DELETE 'http://localhost:4000/access_group/production-models/delete' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\"\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- DeleteModelGroupResponse with deletion details\n\nRaises:\n- HTTPException 404: If access group not found", "operationId": "delete_access_group_access_group__access_group__delete_delete", "parameters": [ { @@ -1513,7 +1513,7 @@ }, "/access_group/{access_group}/info": { "get": { - "description": "Get information about a specific access group.\n\nExample:\n```bash\ncurl -X GET 'http://localhost:4000/access_group/production-models/info' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- AccessGroupInfo with the access group details, its shared budget and its spend\n\nRaises:\n- HTTPException 404: If access group not found", + "description": "Get information about a specific access group.\n\nExample:\n```bash\ncurl -X GET 'http://localhost:4000/access_group/production-models/info' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\"\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n\nReturns:\n- AccessGroupInfo with the access group details, its shared budget and its spend\n\nRaises:\n- HTTPException 404: If access group not found", "operationId": "get_access_group_info_access_group__access_group__info_get", "parameters": [ { @@ -1561,7 +1561,7 @@ }, "/access_group/{access_group}/update": { "put": { - "description": "Update an access group's model names.\n\nThis will:\n1. Remove the access group from all current deployments\n2. Add the access group to all deployments for the new model_names list\n\nExample:\n```bash\ncurl -X PUT 'http://localhost:4000/access_group/production-models/update' \\\n -H 'Authorization: Bearer $LITELLM_API_KEY' \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"model_names\": [\"gpt-4\", \"claude-3-sonnet\"]\n }'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n- model_names: List[str] - New list of model groups to include\n\nReturns:\n- NewModelGroupResponse with the updated access group details\n\nRaises:\n- HTTPException 400: If any model names don't exist\n- HTTPException 404: If access group not found", + "description": "Update an access group's model names.\n\nThis will:\n1. Remove the access group from all current deployments\n2. Add the access group to all deployments for the new model_names list\n\nExample:\n```bash\ncurl -X PUT 'http://localhost:4000/access_group/production-models/update' \\\n -H \"Authorization: Bearer $LITELLM_API_KEY\" \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"model_names\": [\"gpt-4\", \"claude-3-sonnet\"]\n }'\n```\n\nParameters:\n- access_group: str - The access group name (URL path parameter)\n- model_names: List[str] - New list of model groups to include\n\nReturns:\n- NewModelGroupResponse with the updated access group details\n\nRaises:\n- HTTPException 400: If any model names don't exist\n- HTTPException 404: If access group not found", "operationId": "update_access_group_access_group__access_group__update_put", "parameters": [ { @@ -44430,7 +44430,7 @@ "paths": { "/v1/indexes": { "get": { - "description": "List all vector store indexes. Proxy admin only.\n\n```bash\ncurl -L -X GET 'http://0.0.0.0:4000/v1/indexes' -H 'Authorization: Bearer $LITELLM_API_KEY'\n```", + "description": "List all vector store indexes. Proxy admin only.\n\n```bash\ncurl -L -X GET 'http://0.0.0.0:4000/v1/indexes' -H \"Authorization: Bearer $LITELLM_API_KEY\"\n```", "operationId": "index_list_v1_indexes_get", "responses": { "200": { @@ -44455,7 +44455,7 @@ ] }, "post": { - "description": "Create an index. Just writes the index to the database.\n\n```bash\ncurl -L -X POST 'http://0.0.0.0:4000/v1/indexes' -H 'Content-Type: application/json' -H 'Authorization: Bearer $LITELLM_API_KEY' -d '{\n \"index_name\": \"dall-e-3\",\n \"litellm_params\": {\n \"vector_store_index\": \"real-index-name\",\n \"vector_store_name\": \"azure-ai-search\"\n }\n }'\n```", + "description": "Create an index. Just writes the index to the database.\n\n```bash\ncurl -L -X POST 'http://0.0.0.0:4000/v1/indexes' -H 'Content-Type: application/json' -H \"Authorization: Bearer $LITELLM_API_KEY\" -d '{\n \"index_name\": \"dall-e-3\",\n \"litellm_params\": {\n \"vector_store_index\": \"real-index-name\",\n \"vector_store_name\": \"azure-ai-search\"\n }\n }'\n```", "operationId": "index_create_v1_indexes_post", "requestBody": { "content": { diff --git a/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/example_config.yaml b/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/example_config.yaml index 797a83a9460..c1e59b9f280 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/example_config.yaml +++ b/litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/example_config.yaml @@ -25,7 +25,7 @@ litellm_settings: # 1. Apply guardrail to a specific request: # curl --location 'http://localhost:4000/chat/completions' \ -# --header 'Authorization: Bearer $LITELLM_API_KEY' \ +# --header "Authorization: Bearer $LITELLM_API_KEY" \ # --header 'Content-Type: application/json' \ # --data '{ # "model": "gpt-4", @@ -35,7 +35,7 @@ litellm_settings: # 2. Apply guardrail with dynamic parameters: # curl --location 'http://localhost:4000/chat/completions' \ -# --header 'Authorization: Bearer $LITELLM_API_KEY' \ +# --header "Authorization: Bearer $LITELLM_API_KEY" \ # --header 'Content-Type: application/json' \ # --data '{ # "model": "gpt-4", diff --git a/litellm/proxy/health_endpoints/_health_endpoints.py b/litellm/proxy/health_endpoints/_health_endpoints.py index 268211d1694..811be48fb28 100644 --- a/litellm/proxy/health_endpoints/_health_endpoints.py +++ b/litellm/proxy/health_endpoints/_health_endpoints.py @@ -265,7 +265,7 @@ async def health_services_endpoint( Example: ``` curl -L -X GET 'http://0.0.0.0:4000/health/services?service=datadog' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` """ try: @@ -2007,7 +2007,7 @@ async def test_model_connection( ```bash # If model is configured in proxy_config.yaml, you only need to specify the model name: curl -X POST 'http://localhost:4000/health/test_connection' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' \\ + -H "Authorization: Bearer $LITELLM_API_KEY" \\ -H 'Content-Type: application/json' \\ -d '{ "litellm_params": { @@ -2020,7 +2020,7 @@ async def test_model_connection( # You can also override specific params or test with custom credentials: curl -X POST 'http://localhost:4000/health/test_connection' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' \\ + -H "Authorization: Bearer $LITELLM_API_KEY" \\ -H 'Content-Type: application/json' \\ -d '{ "litellm_params": { diff --git a/litellm/proxy/management_endpoints/customer_endpoints.py b/litellm/proxy/management_endpoints/customer_endpoints.py index 6478b422213..8088b85fce4 100644 --- a/litellm/proxy/management_endpoints/customer_endpoints.py +++ b/litellm/proxy/management_endpoints/customer_endpoints.py @@ -358,7 +358,7 @@ async def new_end_user( Example curl: ``` curl --location 'http://0.0.0.0:4000/customer/new' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "user_id" : "ishaan-jaff-3", @@ -369,7 +369,7 @@ async def new_end_user( # With object permissions curl -L -X POST 'http://localhost:4000/customer/new' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' \ + -H "Authorization: Bearer $LITELLM_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "user_id": "user_1", @@ -513,7 +513,7 @@ async def end_user_info( Example curl: ``` curl -X GET 'http://localhost:4000/customer/info?end_user_id=test-litellm-user-4' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` """ try: @@ -592,7 +592,7 @@ async def update_end_user( Example curl: ``` curl --location 'http://0.0.0.0:4000/customer/update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "user_id": "test-litellm-user-4", @@ -601,7 +601,7 @@ async def update_end_user( # Updating object permissions curl -L -X POST 'http://localhost:4000/customer/update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "user_id": "user_1", @@ -751,7 +751,7 @@ async def delete_end_user( Example curl: ``` curl --location 'http://0.0.0.0:4000/customer/delete' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "user_ids" :["ishaan-jaff-5"] @@ -826,7 +826,7 @@ async def list_end_user( Example curl: ``` curl --location --request GET 'http://0.0.0.0:4000/customer/list' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.py index afce31b06b2..8817515d7ab 100644 --- a/litellm/proxy/management_endpoints/internal_user_endpoints.py +++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py @@ -907,7 +907,7 @@ async def user_info( Example request ``` curl -X GET 'http://localhost:4000/user/info?user_id=krrish7%40berri.ai' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ from litellm.proxy.proxy_server import model_max_budget_limiter, prisma_client @@ -1060,7 +1060,7 @@ async def user_info_v2( Example request: ``` curl -X GET 'http://localhost:4000/v2/user/info?user_id=user123' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ from litellm.proxy.proxy_server import model_max_budget_limiter, prisma_client @@ -1600,7 +1600,7 @@ async def user_update( ``` curl --location 'http://0.0.0.0:4000/user/update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "user_id": "test-litellm-user-4", @@ -1770,7 +1770,7 @@ async def bulk_user_update( Example request for specific users: ```bash curl --location 'http://0.0.0.0:4000/user/bulk_update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "users": [ @@ -1791,7 +1791,7 @@ async def bulk_user_update( Example request for all users: ```bash curl --location 'http://0.0.0.0:4000/user/bulk_update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "all_users": true, @@ -2291,7 +2291,7 @@ async def delete_user( ``` curl --location 'http://0.0.0.0:4000/user/delete' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.py index 5cfbe59181e..e81a0c5806a 100644 --- a/litellm/proxy/management_endpoints/key_management_endpoints.py +++ b/litellm/proxy/management_endpoints/key_management_endpoints.py @@ -1807,7 +1807,7 @@ async def generate_key_fn( ```bash curl --location 'http://0.0.0.0:4000/key/generate' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "permissions": {"allow_pii_controls": true} @@ -2003,7 +2003,7 @@ async def generate_service_account_key_fn( ```bash curl --location 'http://0.0.0.0:4000/key/generate' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "permissions": {"allow_pii_controls": true} @@ -3015,7 +3015,7 @@ async def update_key_fn( Example: ```bash curl --location 'http://0.0.0.0:4000/key/update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "key": "sk-", @@ -3224,7 +3224,7 @@ async def bulk_update_keys( Example request: ```bash curl --location 'http://0.0.0.0:4000/key/bulk_update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "keys": [ @@ -3662,7 +3662,7 @@ async def delete_key_fn( Example: ```bash curl --location 'http://0.0.0.0:4000/key/delete' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "keys": ["sk-QWrxEynunsNpV1zT48HIrw"] @@ -5243,7 +5243,7 @@ async def regenerate_key_fn( Example: ```bash curl --location --request POST 'http://localhost:4000/key/sk-/regenerate' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{ "max_budget": 100, @@ -6739,7 +6739,7 @@ async def block_key( Example: ```bash curl --location 'http://0.0.0.0:4000/key/block' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "key": "sk-Fn8Ej39NxjAXrvpUGKghGw" @@ -6853,7 +6853,7 @@ async def unblock_key( Example: ```bash curl --location 'http://0.0.0.0:4000/key/unblock' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "key": "sk-Fn8Ej39NxjAXrvpUGKghGw" diff --git a/litellm/proxy/management_endpoints/management_v1/budgets.py b/litellm/proxy/management_endpoints/management_v1/budgets.py index 18691aabf37..b01f6f8681d 100644 --- a/litellm/proxy/management_endpoints/management_v1/budgets.py +++ b/litellm/proxy/management_endpoints/management_v1/budgets.py @@ -164,7 +164,7 @@ async def list_budgets( Example curl: ``` curl --location --globoff 'http://0.0.0.0:4000/management/v1/budgets?sort=-max_budget&filter[budget_duration][in]=7d,30d&page_size=25' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ try: diff --git a/litellm/proxy/management_endpoints/management_v1/spend_logs.py b/litellm/proxy/management_endpoints/management_v1/spend_logs.py index 202590d6457..e2f21a13413 100644 --- a/litellm/proxy/management_endpoints/management_v1/spend_logs.py +++ b/litellm/proxy/management_endpoints/management_v1/spend_logs.py @@ -205,7 +205,7 @@ async def list_spend_log_end_users( Example curl: ``` curl --location --globoff 'http://0.0.0.0:4000/management/v1/spend_logs/end_users?filter[startTime][gte]=2026-07-23T00:00:00Z&filter[startTime][lte]=2026-07-24T00:00:00Z&page_size=50&q=acme' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ return await _list_spend_log_facet( diff --git a/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py b/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py index 5eaed74741b..1b776ec7f7b 100644 --- a/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py +++ b/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py @@ -589,7 +589,7 @@ async def create_model_group( Example: ```bash curl -X POST 'http://localhost:4000/access_group/new' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' \\ + -H "Authorization: Bearer $LITELLM_API_KEY" \\ -H 'Content-Type: application/json' \\ -d '{ "access_group": "production-models", @@ -734,7 +734,7 @@ async def list_access_groups( Example: ```bash curl -X GET 'http://localhost:4000/access_group/list' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Returns: @@ -782,7 +782,7 @@ async def get_access_group_info( Example: ```bash curl -X GET 'http://localhost:4000/access_group/production-models/info' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Parameters: @@ -846,7 +846,7 @@ async def update_access_group( Example: ```bash curl -X PUT 'http://localhost:4000/access_group/production-models/update' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' \\ + -H "Authorization: Bearer $LITELLM_API_KEY" \\ -H 'Content-Type: application/json' \\ -d '{ "model_names": ["gpt-4", "claude-3-sonnet"] @@ -998,7 +998,7 @@ async def delete_access_group( Example: ```bash curl -X DELETE 'http://localhost:4000/access_group/production-models/delete' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Parameters: @@ -1104,7 +1104,7 @@ async def get_access_group_budget( Example: ```bash curl -X GET 'http://localhost:4000/access_group/production-models/budget' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Parameters: @@ -1144,7 +1144,7 @@ async def set_access_group_budget( Example: ```bash curl -X PUT 'http://localhost:4000/access_group/production-models/budget' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' \\ + -H "Authorization: Bearer $LITELLM_API_KEY" \\ -H 'Content-Type: application/json' \\ -d '{ "max_budget": 100.0, @@ -1218,7 +1218,7 @@ async def delete_access_group_budget( Example: ```bash curl -X DELETE 'http://localhost:4000/access_group/production-models/budget' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Parameters: diff --git a/litellm/proxy/management_endpoints/organization_endpoints.py b/litellm/proxy/management_endpoints/organization_endpoints.py index b6424e4598f..759333e1b9c 100644 --- a/litellm/proxy/management_endpoints/organization_endpoints.py +++ b/litellm/proxy/management_endpoints/organization_endpoints.py @@ -380,7 +380,7 @@ async def new_organization( ```bash curl --location 'http://0.0.0.0:4000/organization/new' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ @@ -398,7 +398,7 @@ async def new_organization( ```bash curl --location 'http://0.0.0.0:4000/organization/new' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ @@ -1025,13 +1025,13 @@ async def list_organization( Example: ``` curl --location --request GET 'http://0.0.0.0:4000/organization/list?org_alias=my-org' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` Example with org_id: ``` curl --location --request GET 'http://0.0.0.0:4000/organization/list?org_id=123e4567-e89b-12d3-a456-426614174000' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ from litellm.proxy.proxy_server import prisma_client @@ -1225,7 +1225,7 @@ async def organization_member_add( Example: ``` curl -X POST 'http://0.0.0.0:4000/organization/member_add' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' \ + -H "Authorization: Bearer $LITELLM_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "organization_id": "45e3e396-ee08-4a61-a88e-16b3ce7e0849", diff --git a/litellm/proxy/management_endpoints/team_callback_endpoints.py b/litellm/proxy/management_endpoints/team_callback_endpoints.py index ac1237b4b33..65dd64b3a74 100644 --- a/litellm/proxy/management_endpoints/team_callback_endpoints.py +++ b/litellm/proxy/management_endpoints/team_callback_endpoints.py @@ -295,7 +295,7 @@ async def add_team_callbacks( ``` curl -X POST 'http:/localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' \ -H 'Content-Type: application/json' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' \ + -H "Authorization: Bearer $LITELLM_API_KEY" \ -d '{ "callback_name": "langfuse", "callback_type": "success", @@ -467,7 +467,7 @@ async def delete_team_callback( Example curl: ``` curl -X DELETE 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback/langsmith' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Covers callbacks registered through POST /team/{team_id}/callback and the Admin UI. Teams still @@ -603,7 +603,7 @@ async def disable_team_logging( Example curl: ``` curl -X POST 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/disable_logging' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` @@ -735,7 +735,7 @@ async def get_team_callbacks( Example curl: ``` curl -X GET 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` This will return the callback settings for the team with id dbe2f686-a686-4896-864a-4c3924458709 diff --git a/litellm/proxy/management_endpoints/team_endpoints.py b/litellm/proxy/management_endpoints/team_endpoints.py index 1910020323d..799eeaa649e 100644 --- a/litellm/proxy/management_endpoints/team_endpoints.py +++ b/litellm/proxy/management_endpoints/team_endpoints.py @@ -1255,7 +1255,7 @@ async def new_team( Example Request: ``` curl --location 'http://0.0.0.0:4000/team/new' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "team_alias": "my-new-team_2", @@ -1267,7 +1267,7 @@ async def new_team( ``` curl --location 'http://0.0.0.0:4000/team/new' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "team_alias": "QA Prod Bot", @@ -1961,7 +1961,7 @@ async def update_team( ``` curl --location 'http://0.0.0.0:4000/team/update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{ "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", @@ -1972,7 +1972,7 @@ async def update_team( Example - Update Team `max_budget` budget ``` curl --location 'http://0.0.0.0:4000/team/update' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{ "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", @@ -2356,7 +2356,7 @@ async def patch_team( ``` curl --location --request PATCH 'http://0.0.0.0:4000/team/8d916b1c-510d-4894-a334-1c16a93344f5' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{ "metadata": {"cost_center": "1234", "deprecated_key": null} @@ -3090,7 +3090,7 @@ async def team_member_add( ``` curl -X POST 'http://0.0.0.0:4000/team/member_add' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' \ + -H "Authorization: Bearer $LITELLM_API_KEY" \ -H 'Content-Type: application/json' \ -d '{"team_id": "45e3e396-ee08-4a61-a88e-16b3ce7e0849", "member": {"role": "user", "user_id": "krrish247652@berri.ai"}}' @@ -3253,7 +3253,7 @@ async def team_member_delete( ``` curl -X POST 'http://0.0.0.0:8000/team/member_delete' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' \ + -H "Authorization: Bearer $LITELLM_API_KEY" \ -H 'Content-Type: application/json' \ @@ -3775,7 +3775,7 @@ async def bulk_team_member_add( Example request: ```bash curl --location 'http://0.0.0.0:4000/team/bulk_member_add' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "team_id": "team-1234", @@ -3908,7 +3908,7 @@ async def delete_team( ``` curl --location 'http://0.0.0.0:4000/team/delete' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data-raw '{ "team_ids": ["8d916b1c-510d-4894-a334-1c16a93344f5"] @@ -4636,7 +4636,7 @@ async def block_team( Example: ``` curl --location 'http://0.0.0.0:4000/team/block' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "team_id": "team-1234" @@ -4691,7 +4691,7 @@ async def unblock_team( Example: ``` curl --location 'http://0.0.0.0:4000/team/unblock' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "team_id": "team-1234" @@ -5330,7 +5330,7 @@ async def list_team( """ ``` curl --location --request GET 'http://0.0.0.0:4000/team/list' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` Parameters: @@ -5534,7 +5534,7 @@ async def team_model_add( Example Request: ``` curl --location 'http://0.0.0.0:4000/team/model/add' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "team_id": "team-1234", @@ -5639,7 +5639,7 @@ async def team_model_delete( Example Request: ``` curl --location 'http://0.0.0.0:4000/team/model/delete' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "team_id": "team-1234", diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index df884cf5e13..473da5f9d16 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -11371,7 +11371,7 @@ async def moderations( ``` curl --location 'http://0.0.0.0:4000/moderations' \ --header 'Content-Type: application/json' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' \ + --header "Authorization: Bearer $LITELLM_API_KEY" \ --data '{"input": "Sample text goes here", "model": "text-moderation-stable"}' ``` """ @@ -13021,7 +13021,7 @@ async def supported_openai_params(model: str): Example curl: ``` curl -X GET --location 'http://localhost:4000/utils/supported_openai_params?model=gpt-3.5-turbo-16k' \ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` """ from litellm.litellm_core_utils.get_llm_provider_logic import declared_authenticating_provider @@ -14259,7 +14259,7 @@ async def model_info_v2( Example request: ``` curl -X GET 'http://localhost:4000/v2/model/info?include_team_models=true&page=1&size=50' \\ - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" ``` Example response: @@ -15227,7 +15227,7 @@ async def model_deprecations( Example: ```shell curl -X GET 'http://localhost:4000/model/deprecations' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` """ return collect_model_deprecations(llm_router=llm_router, warn_within_days=warn_within_days) @@ -15289,7 +15289,7 @@ async def model_group_info( curl -X 'GET' \ 'http://localhost:4000/model_group/info' \ -H 'accept: application/json' \ - -H 'x-api-key: $LITELLM_API_KEY' + -H "x-api-key: $LITELLM_API_KEY" ``` Example Request (Specific Model Group): @@ -15297,7 +15297,7 @@ async def model_group_info( curl -X 'GET' \ 'http://localhost:4000/model_group/info?model_group=rerank-english-v3.0' \ -H 'accept: application/json' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Example Request (Specific Wildcard Model Group): (e.g. `model_name: openai/*` on config.yaml) @@ -15305,7 +15305,7 @@ async def model_group_info( curl -X 'GET' \ 'http://localhost:4000/model_group/info?model_group=openai/tts-1' -H 'accept: application/json' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` Learn how to use and set wildcard models [here](https://docs.litellm.ai/docs/wildcard_routing) diff --git a/litellm/proxy/spend_tracking/spend_management_endpoints.py b/litellm/proxy/spend_tracking/spend_management_endpoints.py index 66e1d1fa4f6..ecc3b5d66ec 100644 --- a/litellm/proxy/spend_tracking/spend_management_endpoints.py +++ b/litellm/proxy/spend_tracking/spend_management_endpoints.py @@ -2168,7 +2168,7 @@ async def calculate_spend(request: SpendCalculateRequest): ``` curl --location 'http://localhost:4000/spend/calculate' - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ "model": "anthropic.claude-v2", @@ -2180,7 +2180,7 @@ async def calculate_spend(request: SpendCalculateRequest): ``` curl --location 'http://localhost:4000/spend/calculate' - --header 'Authorization: Bearer $LITELLM_API_KEY' + --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ "completion_response": { diff --git a/litellm/proxy/vector_store_endpoints/endpoints.py b/litellm/proxy/vector_store_endpoints/endpoints.py index 03bb8ac3ef7..d8b9154af55 100644 --- a/litellm/proxy/vector_store_endpoints/endpoints.py +++ b/litellm/proxy/vector_store_endpoints/endpoints.py @@ -561,7 +561,7 @@ async def index_create( ```bash curl -L -X POST 'http://0.0.0.0:4000/v1/indexes' \ -H 'Content-Type: application/json' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' \ + -H "Authorization: Bearer $LITELLM_API_KEY" \ -d '{ "index_name": "dall-e-3", "litellm_params": { @@ -622,7 +622,7 @@ async def index_list( ```bash curl -L -X GET 'http://0.0.0.0:4000/v1/indexes' \ - -H 'Authorization: Bearer $LITELLM_API_KEY' + -H "Authorization: Bearer $LITELLM_API_KEY" ``` """ from litellm.proxy.proxy_server import prisma_client diff --git a/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupUsagePanel.tsx b/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupUsagePanel.tsx index 206ef8d1174..27f72e90328 100644 --- a/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupUsagePanel.tsx +++ b/ui/litellm-dashboard/src/components/routing_groups/RoutingGroupUsagePanel.tsx @@ -19,7 +19,7 @@ const exampleModel = (group: RoutingGroup): string => group.models[0] ?? " `curl -X POST '${baseUrl}/v1/chat/completions' \\ -H 'Content-Type: application/json' \\ - -H 'Authorization: Bearer $LITELLM_API_KEY' \\ + -H "Authorization: Bearer $LITELLM_API_KEY" \\ -d '{ "model": "${exampleModel(group)}", "messages": [{"role": "user", "content": "Hello!"}] diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index a4d757633cf..29e27c1d5f6 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -438,7 +438,7 @@ export interface paths { * Example: * ```bash * curl -X GET 'http://localhost:4000/access_group/list' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Returns: @@ -472,7 +472,7 @@ export interface paths { * Example: * ```bash * curl -X POST 'http://localhost:4000/access_group/new' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' \ + * -H "Authorization: Bearer $LITELLM_API_KEY" \ * -H 'Content-Type: application/json' \ * -d '{ * "access_group": "production-models", @@ -512,7 +512,7 @@ export interface paths { * Example: * ```bash * curl -X GET 'http://localhost:4000/access_group/production-models/budget' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Parameters: @@ -534,7 +534,7 @@ export interface paths { * Example: * ```bash * curl -X PUT 'http://localhost:4000/access_group/production-models/budget' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' \ + * -H "Authorization: Bearer $LITELLM_API_KEY" \ * -H 'Content-Type: application/json' \ * -d '{ * "max_budget": 100.0, @@ -565,7 +565,7 @@ export interface paths { * Example: * ```bash * curl -X DELETE 'http://localhost:4000/access_group/production-models/budget' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Parameters: @@ -602,7 +602,7 @@ export interface paths { * Example: * ```bash * curl -X DELETE 'http://localhost:4000/access_group/production-models/delete' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Parameters: @@ -634,7 +634,7 @@ export interface paths { * Example: * ```bash * curl -X GET 'http://localhost:4000/access_group/production-models/info' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Parameters: @@ -674,7 +674,7 @@ export interface paths { * Example: * ```bash * curl -X PUT 'http://localhost:4000/access_group/production-models/update' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' \ + * -H "Authorization: Bearer $LITELLM_API_KEY" \ * -H 'Content-Type: application/json' \ * -d '{ * "model_names": ["gpt-4", "claude-3-sonnet"] @@ -3810,7 +3810,7 @@ export interface paths { * * Example curl: * ``` - * curl --location 'http://0.0.0.0:4000/customer/delete' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/customer/delete' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_ids" :["ishaan-jaff-5"] * }' * @@ -3840,7 +3840,7 @@ export interface paths { * * Example curl: * ``` - * curl -X GET 'http://localhost:4000/customer/info?end_user_id=test-litellm-user-4' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X GET 'http://localhost:4000/customer/info?end_user_id=test-litellm-user-4' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["end_user_info_customer_info_get"]; @@ -3865,7 +3865,7 @@ export interface paths { * * Example curl: * ``` - * curl --location --request GET 'http://0.0.0.0:4000/customer/list' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl --location --request GET 'http://0.0.0.0:4000/customer/list' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["list_end_user_customer_list_get"]; @@ -3925,7 +3925,7 @@ export interface paths { * * Example curl: * ``` - * curl --location 'http://0.0.0.0:4000/customer/new' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/customer/new' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_id" : "ishaan-jaff-3", * "allowed_region": "eu", * "budget_id": "free_tier", @@ -3933,7 +3933,7 @@ export interface paths { * }' * * # With object permissions - * curl -L -X POST 'http://localhost:4000/customer/new' -H 'Authorization: Bearer $LITELLM_API_KEY' -H 'Content-Type: application/json' -d '{ + * curl -L -X POST 'http://localhost:4000/customer/new' -H "Authorization: Bearer $LITELLM_API_KEY" -H 'Content-Type: application/json' -d '{ * "user_id": "user_1", * "object_permission": { * "mcp_servers": ["server_1"], @@ -4021,13 +4021,13 @@ export interface paths { * * Example curl: * ``` - * curl --location 'http://0.0.0.0:4000/customer/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/customer/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_id": "test-litellm-user-4", * "budget_id": "paid_tier" * }' * * # Updating object permissions - * curl -L -X POST 'http://localhost:4000/customer/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl -L -X POST 'http://localhost:4000/customer/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_id": "user_1", * "object_permission": { * "mcp_servers": ["server_3"], @@ -4343,7 +4343,7 @@ export interface paths { * * Example curl: * ``` - * curl --location 'http://0.0.0.0:4000/customer/delete' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/customer/delete' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_ids" :["ishaan-jaff-5"] * }' * @@ -4373,7 +4373,7 @@ export interface paths { * * Example curl: * ``` - * curl -X GET 'http://localhost:4000/customer/info?end_user_id=test-litellm-user-4' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X GET 'http://localhost:4000/customer/info?end_user_id=test-litellm-user-4' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["end_user_info_end_user_info_get"]; @@ -4398,7 +4398,7 @@ export interface paths { * * Example curl: * ``` - * curl --location --request GET 'http://0.0.0.0:4000/customer/list' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl --location --request GET 'http://0.0.0.0:4000/customer/list' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["list_end_user_end_user_list_get"]; @@ -4458,7 +4458,7 @@ export interface paths { * * Example curl: * ``` - * curl --location 'http://0.0.0.0:4000/customer/new' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/customer/new' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_id" : "ishaan-jaff-3", * "allowed_region": "eu", * "budget_id": "free_tier", @@ -4466,7 +4466,7 @@ export interface paths { * }' * * # With object permissions - * curl -L -X POST 'http://localhost:4000/customer/new' -H 'Authorization: Bearer $LITELLM_API_KEY' -H 'Content-Type: application/json' -d '{ + * curl -L -X POST 'http://localhost:4000/customer/new' -H "Authorization: Bearer $LITELLM_API_KEY" -H 'Content-Type: application/json' -d '{ * "user_id": "user_1", * "object_permission": { * "mcp_servers": ["server_1"], @@ -4554,13 +4554,13 @@ export interface paths { * * Example curl: * ``` - * curl --location 'http://0.0.0.0:4000/customer/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/customer/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_id": "test-litellm-user-4", * "budget_id": "paid_tier" * }' * * # Updating object permissions - * curl -L -X POST 'http://localhost:4000/customer/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl -L -X POST 'http://localhost:4000/customer/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_id": "user_1", * "object_permission": { * "mcp_servers": ["server_3"], @@ -7009,7 +7009,7 @@ export interface paths { * * Example: * ``` - * curl -L -X GET 'http://0.0.0.0:4000/health/services?service=datadog' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -L -X GET 'http://0.0.0.0:4000/health/services?service=datadog' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["health_services_endpoint_health_services_get"]; @@ -7063,7 +7063,7 @@ export interface paths { * ```bash * # If model is configured in proxy_config.yaml, you only need to specify the model name: * curl -X POST 'http://localhost:4000/health/test_connection' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' \ + * -H "Authorization: Bearer $LITELLM_API_KEY" \ * -H 'Content-Type: application/json' \ * -d '{ * "litellm_params": { @@ -7076,7 +7076,7 @@ export interface paths { * * # You can also override specific params or test with custom credentials: * curl -X POST 'http://localhost:4000/health/test_connection' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' \ + * -H "Authorization: Bearer $LITELLM_API_KEY" \ * -H 'Content-Type: application/json' \ * -d '{ * "litellm_params": { @@ -7498,7 +7498,7 @@ export interface paths { * * Example: * ```bash - * curl --location 'http://0.0.0.0:4000/key/block' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/key/block' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "key": "sk-Fn8Ej39NxjAXrvpUGKghGw" * }' * ``` @@ -7543,7 +7543,7 @@ export interface paths { * * Example request: * ```bash - * curl --location 'http://0.0.0.0:4000/key/bulk_update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/key/bulk_update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "keys": [ * { * "key": "sk-", @@ -7589,7 +7589,7 @@ export interface paths { * * Example: * ```bash - * curl --location 'http://0.0.0.0:4000/key/delete' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/key/delete' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "keys": ["sk-QWrxEynunsNpV1zT48HIrw"] * }' * ``` @@ -7680,7 +7680,7 @@ export interface paths { * 1. Allow users to turn on/off pii masking * * ```bash - * curl --location 'http://0.0.0.0:4000/key/generate' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/key/generate' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "permissions": {"allow_pii_controls": true} * }' * ``` @@ -7905,7 +7905,7 @@ export interface paths { * * Example: * ```bash - * curl --location --request POST 'http://localhost:4000/key/sk-/regenerate' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data-raw '{ + * curl --location --request POST 'http://localhost:4000/key/sk-/regenerate' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data-raw '{ * "max_budget": 100, * "metadata": {"team": "core-infra"}, * "models": ["gpt-4", "gpt-3.5-turbo"] @@ -7983,7 +7983,7 @@ export interface paths { * 1. Allow users to turn on/off pii masking * * ```bash - * curl --location 'http://0.0.0.0:4000/key/generate' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/key/generate' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "permissions": {"allow_pii_controls": true} * }' * ``` @@ -8042,7 +8042,7 @@ export interface paths { * * Example: * ```bash - * curl --location 'http://0.0.0.0:4000/key/unblock' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/key/unblock' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "key": "sk-Fn8Ej39NxjAXrvpUGKghGw" * }' * ``` @@ -8132,7 +8132,7 @@ export interface paths { * * Example: * ```bash - * curl --location 'http://0.0.0.0:4000/key/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/key/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "key": "sk-", * "key_alias": "my-key", * "user_id": "user-1234", @@ -8198,7 +8198,7 @@ export interface paths { * * Example: * ```bash - * curl --location --request POST 'http://localhost:4000/key/sk-/regenerate' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data-raw '{ + * curl --location --request POST 'http://localhost:4000/key/sk-/regenerate' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data-raw '{ * "max_budget": 100, * "metadata": {"team": "core-infra"}, * "models": ["gpt-4", "gpt-3.5-turbo"] @@ -8354,7 +8354,7 @@ export interface paths { * * Example curl: * ``` - * curl --location --globoff 'http://0.0.0.0:4000/management/v1/budgets?sort=-max_budget&filter[budget_duration][in]=7d,30d&page_size=25' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl --location --globoff 'http://0.0.0.0:4000/management/v1/budgets?sort=-max_budget&filter[budget_duration][in]=7d,30d&page_size=25' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["list_budgets_management_v1_budgets_get"]; @@ -8388,7 +8388,7 @@ export interface paths { * * Example curl: * ``` - * curl --location --globoff 'http://0.0.0.0:4000/management/v1/spend_logs/end_users?filter[startTime][gte]=2026-07-23T00:00:00Z&filter[startTime][lte]=2026-07-24T00:00:00Z&page_size=50&q=acme' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl --location --globoff 'http://0.0.0.0:4000/management/v1/spend_logs/end_users?filter[startTime][gte]=2026-07-23T00:00:00Z&filter[startTime][lte]=2026-07-24T00:00:00Z&page_size=50&q=acme' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["list_spend_log_end_users_management_v1_spend_logs_end_users_get"]; @@ -8844,7 +8844,7 @@ export interface paths { * Example: * ```shell * curl -X GET 'http://localhost:4000/model/deprecations' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["model_deprecations_model_deprecations_get"]; @@ -9134,18 +9134,18 @@ export interface paths { * * Example Request (All Models): * ```shell - * curl -X 'GET' 'http://localhost:4000/model_group/info' -H 'accept: application/json' -H 'x-api-key: $LITELLM_API_KEY' + * curl -X 'GET' 'http://localhost:4000/model_group/info' -H 'accept: application/json' -H "x-api-key: $LITELLM_API_KEY" * ``` * * Example Request (Specific Model Group): * ```shell - * curl -X 'GET' 'http://localhost:4000/model_group/info?model_group=rerank-english-v3.0' -H 'accept: application/json' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X 'GET' 'http://localhost:4000/model_group/info?model_group=rerank-english-v3.0' -H 'accept: application/json' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Example Request (Specific Wildcard Model Group): (e.g. `model_name: openai/*` on config.yaml) * ```shell * curl -X 'GET' 'http://localhost:4000/model_group/info?model_group=openai/tts-1' - * -H 'accept: application/json' -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H 'accept: application/json' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Learn how to use and set wildcard models [here](https://docs.litellm.ai/docs/wildcard_routing) @@ -9467,7 +9467,7 @@ export interface paths { * @description The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies. * Quick Start * ``` - * curl --location 'http://0.0.0.0:4000/moderations' --header 'Content-Type: application/json' --header 'Authorization: Bearer $LITELLM_API_KEY' --data '{"input": "Sample text goes here", "model": "text-moderation-stable"}' + * curl --location 'http://0.0.0.0:4000/moderations' --header 'Content-Type: application/json' --header "Authorization: Bearer $LITELLM_API_KEY" --data '{"input": "Sample text goes here", "model": "text-moderation-stable"}' * ``` */ post: operations["moderations_moderations_post"]; @@ -10290,12 +10290,12 @@ export interface paths { * * Example: * ``` - * curl --location --request GET 'http://0.0.0.0:4000/organization/list?org_alias=my-org' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl --location --request GET 'http://0.0.0.0:4000/organization/list?org_alias=my-org' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Example with org_id: * ``` - * curl --location --request GET 'http://0.0.0.0:4000/organization/list?org_id=123e4567-e89b-12d3-a456-426614174000' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl --location --request GET 'http://0.0.0.0:4000/organization/list?org_id=123e4567-e89b-12d3-a456-426614174000' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["list_organization_organization_list_get"]; @@ -10338,7 +10338,7 @@ export interface paths { * * Example: * ``` - * curl -X POST 'http://0.0.0.0:4000/organization/member_add' -H 'Authorization: Bearer $LITELLM_API_KEY' -H 'Content-Type: application/json' -d '{ + * curl -X POST 'http://0.0.0.0:4000/organization/member_add' -H "Authorization: Bearer $LITELLM_API_KEY" -H 'Content-Type: application/json' -d '{ * "organization_id": "45e3e396-ee08-4a61-a88e-16b3ce7e0849", * "member": { * "role": "internal_user", @@ -10444,7 +10444,7 @@ export interface paths { * * ```bash * curl --location 'http://0.0.0.0:4000/organization/new' - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * --header 'Content-Type: application/json' * --data '{ * "organization_alias": "my-secret-org", @@ -10459,7 +10459,7 @@ export interface paths { * * ```bash * curl --location 'http://0.0.0.0:4000/organization/new' - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * --header 'Content-Type: application/json' * --data '{ * "organization_alias": "my-secret-org", @@ -11485,7 +11485,7 @@ export interface paths { * Example: * ```bash * curl --location --request DELETE 'http://0.0.0.0:4000/project/delete' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' \ + * --header "Authorization: Bearer $LITELLM_API_KEY" \ * --header 'Content-Type: application/json' \ * --data '{ * "project_ids": ["project-123", "project-456"] @@ -11515,7 +11515,7 @@ export interface paths { * Example: * ```bash * curl --location 'http://0.0.0.0:4000/project/info?project_id=project-123' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["project_info_project_info_get"]; @@ -11541,7 +11541,7 @@ export interface paths { * Example: * ```bash * curl --location 'http://0.0.0.0:4000/project/list' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["list_projects_project_list_get"]; @@ -11594,7 +11594,7 @@ export interface paths { * * ```bash * curl --location 'http://0.0.0.0:4000/project/new' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' \ + * --header "Authorization: Bearer $LITELLM_API_KEY" \ * --header 'Content-Type: application/json' \ * --data '{ * "project_alias": "flight-search-assistant", @@ -11621,7 +11621,7 @@ export interface paths { * * ```bash * curl --location 'http://0.0.0.0:4000/project/new' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' \ + * --header "Authorization: Bearer $LITELLM_API_KEY" \ * --header 'Content-Type: application/json' \ * --data '{ * "project_alias": "hotel-recommendations", @@ -11675,7 +11675,7 @@ export interface paths { * Example: * ```bash * curl --location 'http://0.0.0.0:4000/project/update' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' \ + * --header "Authorization: Bearer $LITELLM_API_KEY" \ * --header 'Content-Type: application/json' \ * --data '{ * "project_id": "project-123", @@ -13997,7 +13997,7 @@ export interface paths { * * ``` * curl --location 'http://localhost:4000/spend/calculate' - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * --header 'Content-Type: application/json' * --data '{ * "model": "anthropic.claude-v2", @@ -14009,7 +14009,7 @@ export interface paths { * * ``` * curl --location 'http://localhost:4000/spend/calculate' - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * --header 'Content-Type: application/json' * --data '{ * "completion_response": { @@ -14938,7 +14938,7 @@ export interface paths { * * Example: * ``` - * curl --location 'http://0.0.0.0:4000/team/block' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/team/block' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "team_id": "team-1234" * }' * ``` @@ -14983,7 +14983,7 @@ export interface paths { * * Example request: * ```bash - * curl --location 'http://0.0.0.0:4000/team/bulk_member_add' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/team/bulk_member_add' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "team_id": "team-1234", * "members": [ * { @@ -15090,7 +15090,7 @@ export interface paths { * - team_ids: List[str] - Required. List of team IDs to delete. Example: ["team-1234", "team-5678"] * * ``` - * curl --location 'http://0.0.0.0:4000/team/delete' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data-raw '{ + * curl --location 'http://0.0.0.0:4000/team/delete' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data-raw '{ * "team_ids": ["8d916b1c-510d-4894-a334-1c16a93344f5"] * }' * ``` @@ -15195,7 +15195,7 @@ export interface paths { /** * List Team * @description ``` - * curl --location --request GET 'http://0.0.0.0:4000/team/list' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl --location --request GET 'http://0.0.0.0:4000/team/list' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Parameters: @@ -15229,7 +15229,7 @@ export interface paths { * Only proxy_admin or admin of team, allowed to access this endpoint. * ``` * - * curl -X POST 'http://0.0.0.0:4000/team/member_add' -H 'Authorization: Bearer $LITELLM_API_KEY' -H 'Content-Type: application/json' -d '{"team_id": "45e3e396-ee08-4a61-a88e-16b3ce7e0849", "member": {"role": "user", "user_id": "krrish247652@berri.ai"}}' + * curl -X POST 'http://0.0.0.0:4000/team/member_add' -H "Authorization: Bearer $LITELLM_API_KEY" -H 'Content-Type: application/json' -d '{"team_id": "45e3e396-ee08-4a61-a88e-16b3ce7e0849", "member": {"role": "user", "user_id": "krrish247652@berri.ai"}}' * * ``` */ @@ -15258,7 +15258,7 @@ export interface paths { * If user doesn't exist, an exception will be raised * ``` * curl -X POST 'http://0.0.0.0:8000/team/member_delete' - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * -H 'Content-Type: application/json' * -d '{ * "team_id": "45e3e396-ee08-4a61-a88e-16b3ce7e0849", @@ -15339,7 +15339,7 @@ export interface paths { * * Example Request: * ``` - * curl --location 'http://0.0.0.0:4000/team/model/add' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/team/model/add' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "team_id": "team-1234", * "models": ["gpt-4", "claude-2"] * }' @@ -15371,7 +15371,7 @@ export interface paths { * * Example Request: * ``` - * curl --location 'http://0.0.0.0:4000/team/model/delete' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/team/model/delete' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "team_id": "team-1234", * "models": ["gpt-4"] * }' @@ -15453,7 +15453,7 @@ export interface paths { * * Example Request: * ``` - * curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/team/new' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "team_alias": "my-new-team_2", * "members_with_roles": [{"role": "admin", "user_id": "user-1234"}, * {"role": "user", "user_id": "user-2434"}] @@ -15462,7 +15462,7 @@ export interface paths { * ``` * * ``` - * curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/team/new' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "team_alias": "QA Prod Bot", * "max_budget": 0.000000001, * "budget_duration": "1d" @@ -15607,7 +15607,7 @@ export interface paths { * * Example: * ``` - * curl --location 'http://0.0.0.0:4000/team/unblock' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/team/unblock' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "team_id": "team-1234" * }' * ``` @@ -15676,7 +15676,7 @@ export interface paths { * - default_team_member_models: Optional[List[str]] - Default models assigned to new team members when they join this team. Must be a subset of the team's models. * * ``` - * curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data-raw '{ + * curl --location 'http://0.0.0.0:4000/team/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data-raw '{ * "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", * "tpm_limit": 100 * }' @@ -15684,7 +15684,7 @@ export interface paths { * * Example - Update Team `max_budget` budget * ``` - * curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data-raw '{ + * curl --location 'http://0.0.0.0:4000/team/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data-raw '{ * "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", * "max_budget": 10 * }' @@ -15722,7 +15722,7 @@ export interface paths { * updated team. * * ``` - * curl --location --request PATCH 'http://0.0.0.0:4000/team/8d916b1c-510d-4894-a334-1c16a93344f5' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data-raw '{ + * curl --location --request PATCH 'http://0.0.0.0:4000/team/8d916b1c-510d-4894-a334-1c16a93344f5' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data-raw '{ * "metadata": {"cost_center": "1234", "deprecated_key": null} * }' * ``` @@ -15746,7 +15746,7 @@ export interface paths { * * Example curl: * ``` - * curl -X GET 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X GET 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * This will return the callback settings for the team with id dbe2f686-a686-4896-864a-4c3924458709 @@ -15797,7 +15797,7 @@ export interface paths { * * Example curl: * ``` - * curl -X POST 'http:/localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H 'Content-Type: application/json' -H 'Authorization: Bearer $LITELLM_API_KEY' -d '{ + * curl -X POST 'http:/localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H 'Content-Type: application/json' -H "Authorization: Bearer $LITELLM_API_KEY" -d '{ * "callback_name": "langfuse", * "callback_type": "success", * "callback_vars": {"langfuse_public_key": "pk-lf-xxxx1", "langfuse_secret_key": "sk-xxxxx"} @@ -15841,7 +15841,7 @@ export interface paths { * * Example curl: * ``` - * curl -X DELETE 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback/langsmith' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X DELETE 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback/langsmith' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Covers callbacks registered through POST /team/{team_id}/callback and the Admin UI. Teams still @@ -15877,7 +15877,7 @@ export interface paths { * * Example curl: * ``` - * curl -X POST 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/disable_logging' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X POST 'http://localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/disable_logging' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` */ post: operations["disable_team_logging_team__team_id__disable_logging_post"]; @@ -16457,7 +16457,7 @@ export interface paths { * * Example request for specific users: * ```bash - * curl --location 'http://0.0.0.0:4000/user/bulk_update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/user/bulk_update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "users": [ * { * "user_id": "user1", @@ -16475,7 +16475,7 @@ export interface paths { * * Example request for all users: * ```bash - * curl --location 'http://0.0.0.0:4000/user/bulk_update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/user/bulk_update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "all_users": true, * "user_updates": { * "user_role": "internal_user", @@ -16570,7 +16570,7 @@ export interface paths { * * ``` * curl --location 'http://0.0.0.0:4000/user/delete' - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * --header 'Content-Type: application/json' * --data-raw '{ * "user_ids": ["45e3e396-ee08-4a61-a88e-16b3ce7e0849"] @@ -16634,7 +16634,7 @@ export interface paths { * * Example request * ``` - * curl -X GET 'http://localhost:4000/user/info?user_id=krrish7%40berri.ai' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X GET 'http://localhost:4000/user/info?user_id=krrish7%40berri.ai' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["user_info_user_info_get"]; @@ -16808,7 +16808,7 @@ export interface paths { * @description Example curl * * ``` - * curl --location 'http://0.0.0.0:4000/user/update' --header 'Authorization: Bearer $LITELLM_API_KEY' --header 'Content-Type: application/json' --data '{ + * curl --location 'http://0.0.0.0:4000/user/update' --header "Authorization: Bearer $LITELLM_API_KEY" --header 'Content-Type: application/json' --data '{ * "user_id": "test-litellm-user-4", * "user_role": "proxy_admin_viewer" * }' @@ -16900,7 +16900,7 @@ export interface paths { * * Example curl: * ``` - * curl -X GET --location 'http://localhost:4000/utils/supported_openai_params?model=gpt-3.5-turbo-16k' --header 'Authorization: Bearer $LITELLM_API_KEY' + * curl -X GET --location 'http://localhost:4000/utils/supported_openai_params?model=gpt-3.5-turbo-16k' --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["supported_openai_params_utils_supported_openai_params_get"]; @@ -18305,7 +18305,7 @@ export interface paths { * @description List all vector store indexes. Proxy admin only. * * ```bash - * curl -L -X GET 'http://0.0.0.0:4000/v1/indexes' -H 'Authorization: Bearer $LITELLM_API_KEY' + * curl -L -X GET 'http://0.0.0.0:4000/v1/indexes' -H "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["index_list_v1_indexes_get"]; @@ -18315,7 +18315,7 @@ export interface paths { * @description Create an index. Just writes the index to the database. * * ```bash - * curl -L -X POST 'http://0.0.0.0:4000/v1/indexes' -H 'Content-Type: application/json' -H 'Authorization: Bearer $LITELLM_API_KEY' -d '{ + * curl -L -X POST 'http://0.0.0.0:4000/v1/indexes' -H 'Content-Type: application/json' -H "Authorization: Bearer $LITELLM_API_KEY" -d '{ * "index_name": "dall-e-3", * "litellm_params": { * "vector_store_index": "real-index-name", @@ -18992,7 +18992,7 @@ export interface paths { * Example: * ```shell * curl -X GET 'http://localhost:4000/model/deprecations' \ - * -H 'Authorization: Bearer $LITELLM_API_KEY' + * -H "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["model_deprecations_v1_model_deprecations_get"]; @@ -19154,7 +19154,7 @@ export interface paths { * @description The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies. * Quick Start * ``` - * curl --location 'http://0.0.0.0:4000/moderations' --header 'Content-Type: application/json' --header 'Authorization: Bearer $LITELLM_API_KEY' --data '{"input": "Sample text goes here", "model": "text-moderation-stable"}' + * curl --location 'http://0.0.0.0:4000/moderations' --header 'Content-Type: application/json' --header "Authorization: Bearer $LITELLM_API_KEY" --data '{"input": "Sample text goes here", "model": "text-moderation-stable"}' * ``` */ post: operations["moderations_v1_moderations_post"]; @@ -21217,7 +21217,7 @@ export interface paths { * Example request: * ``` * curl -X GET 'http://localhost:4000/v2/model/info?include_team_models=true&page=1&size=50' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * ``` * * Example response: @@ -21366,7 +21366,7 @@ export interface paths { * Example request: * ``` * curl -X GET 'http://localhost:4000/v2/user/info?user_id=user123' \ - * --header 'Authorization: Bearer $LITELLM_API_KEY' + * --header "Authorization: Bearer $LITELLM_API_KEY" * ``` */ get: operations["user_info_v2_v2_user_info_get"];