Skip to content

Commit ad11b75

Browse files
committed
return a list
1 parent d540ac2 commit ad11b75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

optillm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ def extract_contents(response_obj):
381381
response['choices'][0]['message'].get('content')):
382382
contents.append(response['choices'][0]['message']['content'])
383383

384-
# Return single string if only one content, otherwise return list
385-
return contents[0] if len(contents) == 1 else contents
384+
return contents
386385

387386
def parse_conversation(messages):
388387
system_prompt = ""

0 commit comments

Comments
 (0)