litellm/tests/unit/chat_completions
Yujong Lee 411f16fa67
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
refactor(rust-bridge): serve async-flagged sync calls through the async entrypoint
A sync entrypoint called with its async flag (acompletion, aembedding, is_async, aocr, aresponses) now binds its arguments by its own signature, drops the flag, and returns the coroutine of the matching public async function. PublicDispatch.defer is gone, so every async request goes through the one async dispatch path and routing is decided once

The old fallback ran the legacy sync function on the event loop thread, and for chat it crashed because the logging object acompletion sets up was missing. The Python leg is now legacy acompletion, which runs the sync setup in an executor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 14:51:58 +00:00
..
__init__.py test: add __init__.py to migrated tests/unit packages 2026-09-20 11:53:49 +00:00
test_dispatch.py refactor(rust-bridge): serve async-flagged sync calls through the async entrypoint 2026-10-16 14:51:58 +00:00