Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions litellm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,15 @@
force_ipv4: bool = (
False # when True, litellm will force ipv4 for all LLM requests. Some users have seen httpx ConnectionError when using ipv6.
)
enable_http2: bool = (
False # opt-in: use HTTP/2 for outbound LLM requests. Forces the httpx transport (aiohttp cannot speak HTTP/2) and requires the `h2` package.
)
http2_max_connections: Optional[int] = (
None # when enable_http2 is True, max number of (multiplexed) connections in the httpx pool. None -> httpx default.
)
http2_max_keepalive_connections: Optional[int] = (
None # when enable_http2 is True, max number of idle keep-alive connections. None -> httpx default.
)
network_mock: bool = False # When True, use mock transport β€” no real network calls

####### STOP SEQUENCE LIMIT #######
Expand Down
Loading
Loading