mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
Reject simultaneous prompt and stdin_input in run_claude
Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
parent
3ce6ce2f77
commit
6d6689258e
1 changed files with 2 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ def run_claude(
|
|||
"""
|
||||
if prompt is None and stdin_input is None:
|
||||
raise ValueError("must supply either `prompt` or `stdin_input`")
|
||||
if prompt is not None and stdin_input is not None:
|
||||
raise ValueError("must supply only one of `prompt` or `stdin_input`, not both")
|
||||
if prompt is not None and not prompt:
|
||||
raise ValueError("prompt must be a non-empty string when provided")
|
||||
if not model:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue