mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
remove returning key in error message
This commit is contained in:
parent
05620c87e3
commit
f60e3cfd34
1 changed files with 3 additions and 3 deletions
|
|
@ -1670,7 +1670,7 @@ async def _get_and_validate_existing_key(
|
|||
|
||||
if existing_key_row is None:
|
||||
raise ProxyException(
|
||||
message=f"Key not found. Passed key={token}",
|
||||
message=f"Key not found.",
|
||||
type=ProxyErrorTypes.not_found_error,
|
||||
param="key",
|
||||
code=status.HTTP_404_NOT_FOUND,
|
||||
|
|
@ -4947,7 +4947,7 @@ async def block_key(
|
|||
)
|
||||
if existing_record is None:
|
||||
raise ProxyException(
|
||||
message=f"Key not found. Passed key={data.key}",
|
||||
message=f"Key not found.",
|
||||
type=ProxyErrorTypes.not_found_error,
|
||||
param="key",
|
||||
code=status.HTTP_404_NOT_FOUND,
|
||||
|
|
@ -5056,7 +5056,7 @@ async def unblock_key(
|
|||
)
|
||||
if existing_record is None:
|
||||
raise ProxyException(
|
||||
message=f"Key not found. Passed key={data.key}",
|
||||
message=f"Key not found.",
|
||||
type=ProxyErrorTypes.not_found_error,
|
||||
param="key",
|
||||
code=status.HTTP_404_NOT_FOUND,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue