Handle the case where metadata is explicitly set to null/None in the
request body. This was causing a 401 error with "'NoneType' object
has no attribute 'get'" when calling /v1/batches with metadata: null.
The fix uses `or {}` instead of a default dict value since the key
exists but has a None value.
|
||
|---|---|---|
| .. | ||
| test_callback_utils.py | ||
| test_custom_openapi_spec.py | ||
| test_get_routes.py | ||
| test_http_parsing_utils.py | ||
| test_key_rotation_manager.py | ||
| test_load_config_utils.py | ||
| test_openai_endpoint_utils.py | ||
| test_reset_budget_job.py | ||
| test_timezone_utils.py | ||
| test_upsert_budget_membership.py | ||