Unverified Commit 30c060d2 authored by ciaranby's avatar ciaranby Committed by GitHub
Browse files

Fix bug in setting until kwarg in openai completions (#1784)

parent 297966f7
......@@ -430,7 +430,7 @@ class OpenaiChatCompletionsLM(LM):
if "until" in kwargs.keys():
until = kwargs.pop("until")
if isinstance(until, str):
until = [kwargs]
until = [until]
elif not isinstance(until, list):
raise ValueError(
f"Expected repr(kwargs['until']) to be of type Union[str, list] but got {until}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment