mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
The azure_storage logging callback and the azure blob files backend built every storage URL against the hardcoded commercial host, so an Azure Government account was unreachable with no way to override it. Read AZURE_STORAGE_ENDPOINT_SUFFIX (default core.windows.net) once in AzureBlobStorageLogger and derive the Data Lake and Blob hosts from it, so all seven previously hardcoded sites follow the configured cloud. Parse stored blob URLs with urlparse instead of matching the commercial host, so URLs persisted before the suffix was configured still resolve, and pin the resulting host-validation boundary with tests. |
||
|---|---|---|
| .. | ||
| batches | ||
| files | ||
| search | ||
| __init__.py | ||
| test_base_managed_resource.py | ||
| test_base_model_iterator.py | ||
| test_managed_resource_isolation.py | ||
| test_managed_resources_utils.py | ||