mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
fix(tinyfish): keep hidden-params header stashing within lint budgets
This commit is contained in:
parent
34db226dcc
commit
89e563d3da
1 changed files with 5 additions and 5 deletions
|
|
@ -240,11 +240,11 @@ class TinyfishSearchConfig(BaseSearchConfig):
|
|||
_emit_parameter_warnings(parsed)
|
||||
|
||||
max_results: Final = self._caller_max_results or _TINYFISH_RESULT_CAP
|
||||
# Truncate in place so all pydantic-populated fields survive — declared and extras.
|
||||
parsed.results = list(parsed.results[:max_results])
|
||||
raw_headers = dict(raw_response.headers)
|
||||
parsed._hidden_params["headers"] = raw_headers
|
||||
parsed._hidden_params["additional_headers"] = process_response_headers(raw_headers)
|
||||
parsed.results = parsed.results[:max_results]
|
||||
raw_headers: Final = dict(raw_response.headers)
|
||||
hidden: Final = parsed._hidden_params # pyright: ignore[reportPrivateUsage] # sole hidden-params channel
|
||||
hidden["headers"] = raw_headers
|
||||
hidden["additional_headers"] = process_response_headers(raw_headers)
|
||||
return parsed
|
||||
|
||||
def _wrap_error(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue