mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
Litellm dev 01 21 2025 p1 (#7898)
* fix(utils.py): don't pass 'anthropic-beta' header to vertex - will cause request to fail * fix(utils.py): add flag to allow user to disable filtering invalid headers ensure user can control behaviour * style(utils.py): cleanup message * test(test_utils.py): add unit test to cover invalid header filtering * fix(proxy_server.py): fix custom openapi schema generation * fix(utils.py): pass extra headers if set * fix(main.py): fix image variation to use 'client' param
This commit is contained in:
parent
b73980ecd5
commit
dec558ba4c
9 changed files with 161 additions and 21 deletions
|
@ -1479,3 +1479,19 @@ async def test_health_check_not_called_when_disabled(monkeypatch):
|
|||
|
||||
# Verify health check wasn't called
|
||||
mock_prisma.health_check.assert_not_called()
|
||||
|
||||
|
||||
@patch(
|
||||
"litellm.proxy.proxy_server.get_openapi_schema",
|
||||
return_value={
|
||||
"paths": {
|
||||
"/new/route": {"get": {"summary": "New"}},
|
||||
}
|
||||
},
|
||||
)
|
||||
def test_custom_openapi(mock_get_openapi_schema):
|
||||
from litellm.proxy.proxy_server import custom_openapi
|
||||
from litellm.proxy.proxy_server import app
|
||||
|
||||
openapi_schema = custom_openapi()
|
||||
assert openapi_schema is not None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue