mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
fix(router): avoid unchecked cast in text batch check
This commit is contained in:
parent
330f36c561
commit
4dbcdefc2d
1 changed files with 1 additions and 1 deletions
|
|
@ -14351,7 +14351,7 @@ class Router:
|
|||
if (
|
||||
not messages
|
||||
and isinstance(input_data, list)
|
||||
and all(isinstance(item, str) for item in cast(list[object], input_data))
|
||||
and all(isinstance(item, str) for item in input_data)
|
||||
):
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue