mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
test - fixes
This commit is contained in:
parent
da3ae00bd6
commit
35710be7c3
1 changed files with 17 additions and 17 deletions
|
@ -48,23 +48,6 @@ from litellm.proxy.auth.auth_checks import (
|
||||||
log_to_opentelemetry,
|
log_to_opentelemetry,
|
||||||
)
|
)
|
||||||
|
|
||||||
from litellm.proxy.proxy_server import (
|
|
||||||
litellm_proxy_admin_name,
|
|
||||||
common_checks,
|
|
||||||
master_key,
|
|
||||||
prisma_client,
|
|
||||||
llm_model_list,
|
|
||||||
user_custom_auth,
|
|
||||||
custom_db_client,
|
|
||||||
general_settings,
|
|
||||||
proxy_logging_obj,
|
|
||||||
open_telemetry_logger,
|
|
||||||
user_api_key_cache,
|
|
||||||
jwt_handler,
|
|
||||||
allowed_routes_check,
|
|
||||||
get_actual_routes,
|
|
||||||
)
|
|
||||||
|
|
||||||
from litellm.proxy.utils import _to_ns
|
from litellm.proxy.utils import _to_ns
|
||||||
from litellm.proxy.common_utils.http_parsing_utils import _read_request_body
|
from litellm.proxy.common_utils.http_parsing_utils import _read_request_body
|
||||||
|
|
||||||
|
@ -95,6 +78,23 @@ async def user_api_key_auth(
|
||||||
azure_api_key_header: str = fastapi.Security(azure_api_key_header),
|
azure_api_key_header: str = fastapi.Security(azure_api_key_header),
|
||||||
) -> UserAPIKeyAuth:
|
) -> UserAPIKeyAuth:
|
||||||
|
|
||||||
|
from litellm.proxy.proxy_server import (
|
||||||
|
litellm_proxy_admin_name,
|
||||||
|
common_checks,
|
||||||
|
master_key,
|
||||||
|
prisma_client,
|
||||||
|
llm_model_list,
|
||||||
|
user_custom_auth,
|
||||||
|
custom_db_client,
|
||||||
|
general_settings,
|
||||||
|
proxy_logging_obj,
|
||||||
|
open_telemetry_logger,
|
||||||
|
user_api_key_cache,
|
||||||
|
jwt_handler,
|
||||||
|
allowed_routes_check,
|
||||||
|
get_actual_routes,
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if isinstance(api_key, str):
|
if isinstance(api_key, str):
|
||||||
passed_in_key = api_key
|
passed_in_key = api_key
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue