Merge pull request #1080 from nbaldwin98/fixing-replicate-sys-prompt

fix replicate system prompt: forgot to add **optional_params to input data
This commit is contained in:
Krish Dholakia 2023-12-11 07:11:52 -08:00 committed by GitHub
commit bbbc5db104
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: