mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
fix(responses): type the bridged completion kwargs so the basedpyright gate holds
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ba55a86042
commit
022d0ee29e
1 changed files with 6 additions and 1 deletions
|
|
@ -244,8 +244,13 @@ class LiteLLMCompletionTransformationHandler:
|
|||
}
|
||||
)
|
||||
|
||||
completion_kwargs: Final[Mapping[str, object]] = {
|
||||
**request_kwargs,
|
||||
**completion_request,
|
||||
"_skip_responses_api_bridge": True,
|
||||
}
|
||||
litellm_completion_response: Final[ModelResponse | litellm.CustomStreamWrapper] = await litellm.acompletion(
|
||||
**{**kwargs, **completion_request, "_skip_responses_api_bridge": True},
|
||||
**completion_kwargs
|
||||
)
|
||||
if isinstance(litellm_completion_response, ModelResponse):
|
||||
responses_api_response: Final[ResponsesAPIResponse] = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue