Skip to content

Commit

Permalink
Allow overriding truncate parameter in request (#953) (#957)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaqib <maaquib@gmail.com>
  • Loading branch information
sindhuvahinis and maaquib authored Jul 14, 2023
1 parent 247eb55 commit e69b646
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def preprocess_requests(self, requests, **kwargs):
id=r.id,
inputs=r.input_text,
parameters=parameters,
stopping_parameters=stop_parameters))
stopping_parameters=stop_parameters,
truncate=param.get("truncate", 1000)))

if preprocessed_requests:
batch = Batch(id=self.batch_id_counter,
Expand Down

0 comments on commit e69b646

Please sign in to comment.