mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
style(responses): format input validation
This commit is contained in:
parent
2decf0dfe0
commit
001662e3eb
1 changed files with 1 additions and 1 deletions
|
|
@ -465,7 +465,7 @@ async def aresponses(
|
|||
) and litellm_logging_obj.should_run_prompt_management_hooks(prompt_id=prompt_id, non_default_params=kwargs):
|
||||
if isinstance(input, str):
|
||||
client_input: list[AllMessageValues] = [{"role": "user", "content": input}]
|
||||
elif not isinstance(input, list): # pyright: ignore[reportUnnecessaryIsInstance]
|
||||
elif not isinstance(input, list): # pyright: ignore[reportUnnecessaryIsInstance]
|
||||
raise litellm.BadRequestError(
|
||||
message=f"'input' must be a string or list of input items, got {type(input).__name__}",
|
||||
model=model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue