mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
test(integration): keep scripted upstream connections open past the proxy's keepalive (#44695)
* test(integration): re-pin claude-sonnet-5 stream recount tokens and outlast proxy keepalive in scripted upstream Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): derive scripted upstream keepalive from AIOHTTP_KEEPALIVE_TIMEOUT Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(integration): hardcode scripted upstream keepalive to avoid importing litellm Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: kerry <kerry@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
2fd5725c04
commit
a45c6b8f65
1 changed files with 7 additions and 1 deletions
|
|
@ -593,7 +593,13 @@ def main() -> None:
|
|||
parser: Final = argparse.ArgumentParser()
|
||||
parser.add_argument("--port", type=int, default=8190)
|
||||
arguments: Final = parser.parse_args()
|
||||
uvicorn.run(Provider().app(), host="127.0.0.1", port=cast(int, arguments.port), access_log=False)
|
||||
uvicorn.run(
|
||||
Provider().app(),
|
||||
host="127.0.0.1",
|
||||
port=cast(int, arguments.port),
|
||||
access_log=False,
|
||||
timeout_keep_alive=125,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue