resolve dependency cycle

This commit is contained in:
harish876 2026-04-10 23:11:54 +00:00
parent ccf3dc3161
commit 4e5e739559
3 changed files with 10 additions and 5 deletions

View file

@ -6,10 +6,11 @@ import litellm
from litellm.files.types import FileContentStreamingResult
from litellm.proxy._types import UserAPIKeyAuth
from litellm.proxy.common_request_processing import ProxyBaseLLMRequestProcessing
from litellm.proxy.utils import ProxyLogging
from litellm.proxy.openai_files_endpoints.common_utils import (
prepare_data_with_credentials,
)
from litellm.proxy.utils import ProxyLogging
class FileContentStreamingHandler:

View file

@ -24,7 +24,7 @@ from fastapi import (
import litellm
from litellm import CreateFileRequest, get_secret_str
from litellm._logging import verbose_proxy_logger
from litellm.files.file_content_streaming_handler import (
from litellm.proxy.openai_files_endpoints.file_content_streaming_handler import (
FileContentStreamingHandler,
)
from litellm.llms.base_llm.files.transformation import BaseFileEndpoints
@ -49,14 +49,16 @@ from litellm.types.llms.openai import (
OpenAIFilesPurpose,
)
from .common_utils import (
from litellm.proxy.openai_files_endpoints.common_utils import (
_is_base64_encoded_unified_file_id,
encode_file_id_with_model,
extract_file_creation_params,
get_credentials_for_model,
handle_model_based_routing,
)
from .storage_backend_service import StorageBackendFileService
from litellm.proxy.openai_files_endpoints.storage_backend_service import (
StorageBackendFileService,
)
router = APIRouter()

View file

@ -14,11 +14,13 @@ sys.path.insert(
import litellm
from litellm import Router
from litellm.files.file_content_streaming_handler import FileContentStreamingHandler
from litellm.files.types import FileContentStreamingResult
from litellm.proxy._types import LiteLLM_UserTableFiltered, UserAPIKeyAuth
from litellm.proxy.hooks import get_proxy_hook
from litellm.proxy.management_endpoints.internal_user_endpoints import ui_view_users
from litellm.proxy.openai_files_endpoints.file_content_streaming_handler import (
FileContentStreamingHandler,
)
from litellm.proxy.proxy_server import app
from litellm.types.llms.openai import OpenAIFileObject