forked from phoenix/litellm-mirror
adfix: ded **optional_params in input data when system prompt is available (allows to papass other optional params apart from sys prompt)
This commit is contained in:
parent
c2e2e927fb
commit
c5ce11541b
1 changed files with 2 additions and 1 deletions
|
@ -232,7 +232,8 @@ def completion(
|
|||
if system_prompt is not None:
|
||||
input_data = {
|
||||
"prompt": prompt,
|
||||
"system_prompt": system_prompt
|
||||
"system_prompt": system_prompt,
|
||||
**optional_params
|
||||
}
|
||||
# Otherwise, use the prompt as is
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue