mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
fix _assemble_key_object
This commit is contained in:
parent
ce9d084dd4
commit
9a1f00235c
16 changed files with 17 additions and 0 deletions
|
@ -14,7 +14,9 @@ import os, io, time
|
|||
sys.path.insert(
|
||||
0, os.path.abspath("../..")
|
||||
) # Adds the parent directory to the system path
|
||||
|
||||
import pytest, logging, asyncio
|
||||
import litellm_proxy
|
||||
import litellm
|
||||
from litellm_proxy.management_endpoints.model_management_endpoints import (
|
||||
add_new_model,
|
||||
|
|
|
@ -25,6 +25,7 @@ import logging
|
|||
import pytest
|
||||
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm import Router, mock_completion
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
from litellm.caching.caching import DualCache
|
||||
|
|
|
@ -24,6 +24,7 @@ from unittest.mock import patch
|
|||
import pytest
|
||||
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
from litellm.caching.caching import DualCache
|
||||
from litellm_proxy._types import UserAPIKeyAuth
|
||||
|
|
|
@ -23,6 +23,7 @@ from litellm import Router, mock_completion
|
|||
from litellm_proxy.utils import ProxyLogging, hash_token
|
||||
from litellm_proxy._types import UserAPIKeyAuth
|
||||
from litellm.caching.caching import DualCache
|
||||
import litellm_proxy
|
||||
|
||||
### UNIT TESTS FOR OpenAI Moderation ###
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ from fastapi import Request
|
|||
from fastapi.routing import APIRoute
|
||||
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm_proxy._types import SpendCalculateRequest
|
||||
from litellm_proxy.spend_tracking.spend_management_endpoints import calculate_spend
|
||||
from litellm.router import Router
|
||||
|
|
|
@ -25,6 +25,7 @@ import logging
|
|||
import pytest
|
||||
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm import Router, mock_completion
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
from litellm.caching.caching import DualCache
|
||||
|
|
|
@ -25,6 +25,7 @@ import logging
|
|||
|
||||
import pytest
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
from litellm_proxy.management_endpoints.team_endpoints import list_team
|
||||
from litellm_proxy._types import *
|
||||
|
|
|
@ -28,6 +28,7 @@ import logging
|
|||
import pytest
|
||||
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
from litellm_proxy.auth.auth_checks import get_user_object
|
||||
from litellm_proxy.management_endpoints.key_management_endpoints import (
|
||||
|
|
|
@ -10,6 +10,7 @@ sys.path.insert(
|
|||
0, os.path.abspath("../..")
|
||||
) # Adds the parent directory to the system path
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm_proxy.proxy_server import app
|
||||
from litellm_proxy.utils import PrismaClient, ProxyLogging
|
||||
from litellm_proxy.management_endpoints.ui_sso import auth_callback
|
||||
|
|
|
@ -39,6 +39,7 @@ import logging
|
|||
import pytest
|
||||
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
from litellm_proxy.management_endpoints.internal_user_endpoints import (
|
||||
new_user,
|
||||
|
|
|
@ -14,6 +14,7 @@ sys.path.insert(
|
|||
) # Adds the parent directory to the system path
|
||||
import pytest, logging, asyncio
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm_proxy.proxy_server import (
|
||||
router,
|
||||
save_worker_config,
|
||||
|
|
|
@ -26,6 +26,7 @@ load_dotenv()
|
|||
import pytest
|
||||
import uuid
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
|
||||
from litellm_proxy.proxy_server import (
|
||||
|
|
|
@ -25,6 +25,7 @@ from fastapi import Request, HTTPException
|
|||
from fastapi.routing import APIRoute
|
||||
from fastapi.responses import Response
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm.caching.caching import DualCache
|
||||
from litellm_proxy._types import (
|
||||
LiteLLM_JWTAuth,
|
||||
|
|
|
@ -18,6 +18,7 @@ sys.path.insert(
|
|||
) # Adds the parent directory to the system path
|
||||
import pytest, logging, asyncio
|
||||
import litellm, asyncio
|
||||
import litellm_proxy
|
||||
from litellm_proxy.proxy_server import token_counter
|
||||
from litellm_proxy.utils import PrismaClient, ProxyLogging, hash_token, update_spend
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
|
|
|
@ -12,6 +12,7 @@ sys.path.insert(
|
|||
0, os.path.abspath("../..")
|
||||
) # Adds the parent directory to the system path
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from unittest.mock import MagicMock, patch, AsyncMock
|
||||
|
||||
from litellm_proxy._types import LitellmUserRoles, UserAPIKeyAuth
|
||||
|
|
|
@ -16,6 +16,7 @@ from starlette.datastructures import URL
|
|||
from litellm._logging import verbose_proxy_logger
|
||||
import logging
|
||||
import litellm
|
||||
import litellm_proxy
|
||||
from litellm_proxy.auth.user_api_key_auth import (
|
||||
user_api_key_auth,
|
||||
UserAPIKeyAuth,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue