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:
chabala98 2023-12-11 14:42:05 +01:00
parent c2e2e927fb
commit c5ce11541b

View file

@ -232,7 +232,8 @@ def completion(
if system_prompt is not None: if system_prompt is not None:
input_data = { input_data = {
"prompt": prompt, "prompt": prompt,
"system_prompt": system_prompt "system_prompt": system_prompt,
**optional_params
} }
# Otherwise, use the prompt as is # Otherwise, use the prompt as is
else: else: