mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-17 08:18:09 +00:00
- Introduced a new method in `FileContentStreamingHandler` to resolve streaming request parameters, enhancing the routing logic based on credentials. - Updated the `should_stream_file_content` method to check against supported providers. - Cleaned up type hints and imports across multiple files for better organization and clarity. - Added comprehensive tests to validate the new routing behavior and ensure original data integrity during streaming requests.
12 lines
337 B
Python
12 lines
337 B
Python
from typing import AsyncIterator, Dict, Iterator, Literal, NamedTuple, Union
|
|
|
|
|
|
FileContentProvider = Literal[
|
|
"openai", "azure", "vertex_ai", "bedrock", "hosted_vllm", "anthropic", "manus"
|
|
]
|
|
|
|
|
|
class FileContentStreamingResult(NamedTuple):
|
|
stream_iterator: Union[Iterator[bytes], AsyncIterator[bytes]]
|
|
headers: Dict[str, str]
|