Skip to content

Commit c478047

Browse files
Litellm dev 01 10 2025 p2 (#7679)
* test(test_basic_python_version.py): assert all optional dependencies are marked as extras on poetry Fixes #7677 * docs(secret.md): clarify 'read_and_write' secret manager usage on aws * docs(secret.md): fix doc * build(ui/teams.tsx): add edit/delete button for updating user / team membership on ui allows updating user role to admin on ui * build(ui/teams.tsx): display edit member component on ui, when edit button on member clicked * feat(team_endpoints.py): support updating team member role to admin via api endpoints allows team member to become admin post-add * build(ui/user_dashboard.tsx): if team admin - show all team keys Fixes #7650 * test(config.yml): add tomli to ci/cd * test: don't call python_basic_testing in local testing (covered by python 3.13 testing)
1 parent 49d7474 commit c478047

File tree

15 files changed

+425
-67
lines changed

15 files changed

+425
-67
lines changed

.circleci/config.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
command: |
106106
pwd
107107
ls
108-
python -m pytest -vv tests/local_testing --cov=litellm --cov-report=xml -x --junitxml=test-results/junit.xml --durations=5 -k "not test_python_38.py and not router and not assistants and not langfuse and not caching and not cache" -n 4
108+
python -m pytest -vv tests/local_testing --cov=litellm --cov-report=xml -x --junitxml=test-results/junit.xml --durations=5 -k "not test_python_38.py and not test_basic_python_version.py and not router and not assistants and not langfuse and not caching and not cache" -n 4
109109
no_output_timeout: 120m
110110
- run:
111111
name: Rename the coverage files
@@ -895,6 +895,7 @@ jobs:
895895
pip install "pytest-retry==1.6.3"
896896
pip install "pytest-asyncio==0.21.1"
897897
pip install "pytest-cov==5.0.0"
898+
pip install "tomli==2.2.1"
898899
- run:
899900
name: Run tests
900901
command: |

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ poetry install -E extra_proxy -E proxy
358358
Step 3: Test your change:
359359

360360
```
361-
cd litellm/tests # pwd: Documents/litellm/litellm/tests
361+
cd tests # pwd: Documents/litellm/litellm/tests
362362
poetry run flake8
363363
poetry run pytest .
364364
```

dist/litellm-1.57.6.tar.gz

64 Bytes
Binary file not shown.

docs/my-website/docs/secret.md

+14-28
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@ general_settings:
7272
prefix_for_stored_virtual_keys: "litellm/" # OPTIONAL. If set, this prefix will be used for stored virtual keys in the secret manager
7373
access_mode: "write_only" # Literal["read_only", "write_only", "read_and_write"]
7474
```
75+
</TabItem>
76+
<TabItem value="read_and_write" label="Read + Write Keys with AWS Secret Manager">
77+
78+
```yaml
79+
general_settings:
80+
master_key: os.environ/litellm_master_key
81+
key_management_system: "aws_secret_manager" # 👈 KEY CHANGE
82+
key_management_settings:
83+
store_virtual_keys: true # OPTIONAL. Defaults to False, when True will store virtual keys in secret manager
84+
prefix_for_stored_virtual_keys: "litellm/" # OPTIONAL. If set, this prefix will be used for stored virtual keys in the secret manager
85+
access_mode: "read_and_write" # Literal["read_only", "write_only", "read_and_write"]
86+
hosted_keys: ["litellm_master_key"] # OPTIONAL. Specify which env keys you stored on AWS
87+
```
88+
7589
</TabItem>
7690
</Tabs>
7791
@@ -186,34 +200,6 @@ LiteLLM stores secret under the `prefix_for_stored_virtual_keys` path (default:
186200

187201

188202
## Azure Key Vault
189-
<!--
190-
### Quick Start
191-
192-
```python
193-
### Instantiate Azure Key Vault Client ###
194-
from azure.keyvault.secrets import SecretClient
195-
from azure.identity import ClientSecretCredential
196-
197-
# Set your Azure Key Vault URI
198-
KVUri = os.getenv("AZURE_KEY_VAULT_URI")
199-
200-
# Set your Azure AD application/client ID, client secret, and tenant ID - create an application with permission to call your key vault
201-
client_id = os.getenv("AZURE_CLIENT_ID")
202-
client_secret = os.getenv("AZURE_CLIENT_SECRET")
203-
tenant_id = os.getenv("AZURE_TENANT_ID")
204-
205-
# Initialize the ClientSecretCredential
206-
credential = ClientSecretCredential(client_id=client_id, client_secret=client_secret, tenant_id=tenant_id)
207-
208-
# Create the SecretClient using the credential
209-
client = SecretClient(vault_url=KVUri, credential=credential)
210-
211-
### Connect to LiteLLM ###
212-
import litellm
213-
litellm.secret_manager = client
214-
215-
litellm.get_secret("your-test-key")
216-
``` -->
217203

218204
#### Usage with LiteLLM Proxy Server
219205

litellm/proxy/_experimental/out/404.html

-1
This file was deleted.

litellm/proxy/_experimental/out/model_hub.html

-1
This file was deleted.

0 commit comments

Comments
 (0)