mirror of https://github.com/xtekky/gpt4free.git
check multiple messages
This commit is contained in:
parent
e991484e2d
commit
27ca728af8
|
@ -207,7 +207,9 @@ def convert(messages):
|
|||
return context
|
||||
|
||||
async def run(optionSets, messages):
|
||||
prompt = convert(messages)
|
||||
prompt = messages[-1]['content']
|
||||
if(len(messages) > 1):
|
||||
prompt = convert(messages)
|
||||
async for value in AsyncCompletion.create(prompt=prompt,
|
||||
optionSets=optionSets):
|
||||
|
||||
|
|
Loading…
Reference in New Issue