"git@developer.sourcefind.cn:orangecat/ollama.git" did not exist on "5b3a21b578da89b1682a98ce123a6b3c91697e9b"
Commit e33ae5ab authored by FarzanehNakhaee's avatar FarzanehNakhaee
Browse files

Update until in greedy_until

parent c08b2d9d
...@@ -372,6 +372,8 @@ class HFLM(LM): ...@@ -372,6 +372,8 @@ class HFLM(LM):
raise ValueError( raise ValueError(
f"Expected `gen_kwargs['until']` to be of type Union[str,list] but got {until}" f"Expected `gen_kwargs['until']` to be of type Union[str,list] but got {until}"
) )
else:
until = None
else: else:
raise ValueError( raise ValueError(
f"Expected `gen_kwargs` to be of type `dict` but got {gen_kwargs}" f"Expected `gen_kwargs` to be of type `dict` but got {gen_kwargs}"
......
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