fix(rust-bridge): keep the langfuse cast suppression on the cast line
Some checks failed
LiteLLM Rust / rust-lint (push) Waiting to run
LiteLLM Rust / rust-test (push) Waiting to run
LiteLLM Rust / rust-wheel (push) Waiting to run
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Yujong Lee 2026-09-16 22:06:29 +00:00
parent f8e5092a34
commit 5f99e42bc2

View file

@ -795,9 +795,7 @@ def _langfuse(
user: Final = kwargs.get("user")
result: Final = handler.log_event_on_langfuse(
kwargs=kwargs,
response_obj=cast(
ModelResponse, response
), # cast-ok: OCR responses sit outside the legacy union langfuse names
response_obj=cast(ModelResponse, response), # cast-ok: OCR responses sit outside the legacy union
start_time=start_time,
end_time=end_time,
user_id=user if isinstance(user, str) else None,