mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
style(responses_bridge): use dict.get in text merge helper
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
255ef3bc26
commit
9212124266
1 changed files with 1 additions and 3 deletions
|
|
@ -526,9 +526,7 @@ class LiteLLMResponsesTransformationHandler(CompletionTransformationBridge):
|
|||
def _merge_text(
|
||||
responses_api_request: "ResponsesAPIOptionalRequestParams", update: Mapping[str, object]
|
||||
) -> "ResponseText":
|
||||
existing: Final = cast(
|
||||
"dict[str, object]", responses_api_request["text"] if "text" in responses_api_request else {}
|
||||
)
|
||||
existing: Final = cast("dict[str, object]", dict(responses_api_request).get("text") or {})
|
||||
return cast("ResponseText", {**existing, **update})
|
||||
|
||||
def _build_sanitized_litellm_params(self, litellm_params: dict) -> dict[str, object]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue