We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36dd84f commit 24ba825Copy full SHA for 24ba825
parea/wrapper/openai/openai.py
@@ -30,7 +30,6 @@ def convert_to_openai_object(kwargs) -> OpenAIObject:
30
if "choices" in kwargs and isinstance(kwargs["choices"], list) and len(kwargs["choices"]) > 0:
31
if "finish_reason" not in kwargs["choices"][0]:
32
kwargs["choices"][0]["finish_reason"] = "stop"
33
-
34
return OpenAIObject(**kwargs)
35
36
0 commit comments