Skip to content

Commit

Permalink
add todo on chat completion kwarg validation
Browse files Browse the repository at this point in the history
  • Loading branch information
veekaybee committed Dec 20, 2023
1 parent 76056c9 commit 51a8841
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lm_eval/models/openai_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,6 @@ def sameuntil_chunks(xs, size):

# TODO: Assert that passed in by user in gen_kwargs match the OpenAI API
# e.g. warning if some gen_kwarg (say, do_sample=True) invalid for OpenAI is passed by the user
if not until:
until = [self.tok_decode(self.eot_token_id)]

response = oa_chat_completion(
client=self.client,
messages=inps,
Expand Down

0 comments on commit 51a8841

Please sign in to comment.