summaryrefslogtreecommitdiffstats
path: root/testing/binghuan/helpers/binghuan.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/binghuan/helpers/binghuan.py')
-rw-r--r--testing/binghuan/helpers/binghuan.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/binghuan/helpers/binghuan.py b/testing/binghuan/helpers/binghuan.py
index cdeabeb8..2aabc4b6 100644
--- a/testing/binghuan/helpers/binghuan.py
+++ b/testing/binghuan/helpers/binghuan.py
@@ -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):