mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(openai-responses): strip cache_control on compact endpoint as well
Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
parent
acba5537c8
commit
c044ec3f6d
1 changed files with 6 additions and 0 deletions
|
|
@ -648,6 +648,12 @@ class OpenAIResponsesAPIConfig(BaseResponsesAPIConfig):
|
|||
url = str(parsed_url.copy_with(path=compact_path))
|
||||
|
||||
input = self._validate_input_param(input)
|
||||
tools = response_api_optional_request_params.get("tools")
|
||||
input, tools = self.remove_cache_control_flag_from_input_and_tools(
|
||||
model=model, input=input, tools=tools
|
||||
)
|
||||
if tools is not None:
|
||||
response_api_optional_request_params["tools"] = tools
|
||||
data = dict(
|
||||
ResponsesAPIRequestParams(
|
||||
model=model, input=input, **response_api_optional_request_params
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue