mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-07 07:58:09 +00:00
fix(exa): match result count precedence in fallback billing
This commit is contained in:
parent
d0a37501fc
commit
d150fb91db
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ def _non_negative_number(value: object) -> float | None:
|
|||
|
||||
|
||||
def _requested_results(optional_params: Mapping[str, object]) -> int:
|
||||
for key in ("numResults", "max_results"):
|
||||
for key in ("max_results", "numResults"):
|
||||
requested = _non_negative_number(optional_params.get(key))
|
||||
if requested is not None:
|
||||
return int(requested)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue