fix: 修复官方api模型画画指令和更新指令接反的问题
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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重置会话😶'
|
||||
|
||||
Reference in New Issue
Block a user