mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
style: format cache control type conversion
This commit is contained in:
parent
930168e1af
commit
0b9065b6d1
1 changed files with 4 additions and 2 deletions
|
|
@ -1759,8 +1759,10 @@ class LiteLLMCompletionResponsesConfig:
|
|||
)
|
||||
function_call_cache_control = function_call.get("cache_control")
|
||||
if function_call_cache_control:
|
||||
chat_completion_response_message["cache_control"] = cast( # cast-ok: Responses input uses the shared cache-control shape
|
||||
"ChatCompletionCachedContent", function_call_cache_control
|
||||
chat_completion_response_message["cache_control"] = (
|
||||
cast( # cast-ok: Responses input uses the shared cache-control shape
|
||||
"ChatCompletionCachedContent", function_call_cache_control
|
||||
)
|
||||
)
|
||||
|
||||
return [chat_completion_response_message]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue