fix: 修复官方api模型画画指令和更新指令接反的问题

This commit is contained in:
Soulter
2023-04-05 12:11:21 +08:00
parent 435b988223
commit c5e1f8d3e9
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -28,9 +28,9 @@ class CommandOpenAIOfficial(Command):
elif self.command_start_with(message, "set"):
return True, self.set(message, session_id)
elif self.command_start_with(message, "update"):
return True, self.draw(message)
elif self.command_start_with(message, ""):
return True, self.update(message)
elif self.command_start_with(message, ""):
return True, self.draw(message)
return False, None
+1
View File
@@ -32,6 +32,7 @@ class ProviderRevEdgeGPT(Provider):
while err_count < retry_count:
try:
resp = await self.bot.ask(prompt=prompt, conversation_style=ConversationStyle.creative)
print("[RevEdgeGPT] "+str(resp))
resp = resp['item']['messages'][len(resp['item']['messages'])-1]['text']
if resp == prompt:
resp += '\n\n如果你没有让我复述你的话,那代表我可能不想和你继续这个话题了,请输入reset重置会话😶'