Skip to content

Commit 24ba825

Browse files
committed
type checking on old openai versions
1 parent 36dd84f commit 24ba825

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

parea/wrapper/openai/openai.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def convert_to_openai_object(kwargs) -> OpenAIObject:
3030
if "choices" in kwargs and isinstance(kwargs["choices"], list) and len(kwargs["choices"]) > 0:
3131
if "finish_reason" not in kwargs["choices"][0]:
3232
kwargs["choices"][0]["finish_reason"] = "stop"
33-
3433
return OpenAIObject(**kwargs)
3534

3635

0 commit comments

Comments
 (0)