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 d540ac2 commit ad11b75Copy full SHA for ad11b75
optillm.py
@@ -381,8 +381,7 @@ def extract_contents(response_obj):
381
response['choices'][0]['message'].get('content')):
382
contents.append(response['choices'][0]['message']['content'])
383
384
- # Return single string if only one content, otherwise return list
385
- return contents[0] if len(contents) == 1 else contents
+ return contents
386
387
def parse_conversation(messages):
388
system_prompt = ""
0 commit comments