Skip to content

Commit

Permalink
fix bug tom found
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Nov 4, 2024
1 parent 337e789 commit cdc30e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion predicators/pretrained_model_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def _sample_completions(
responses = [
self.call_openai_api(messages,
model=self._model_name,
temperature=temperature)
temperature=temperature,
max_tokens=self._max_tokens)
for _ in range(num_completions)
]
return responses
Expand Down

0 comments on commit cdc30e7

Please sign in to comment.