mnotgod96 / AppAgent

AppAgent: Multimodal Agents as Smartphone Users, an LLM-based multimodal agent framework designed to operate smartphone apps.
https://appagent-official.github.io/
MIT License
4.84k stars 511 forks source link

ERROR: an exception occurs while parsing the model response: list index out of range #55

Open tao-taoran opened 6 months ago

tao-taoran commented 6 months ago

ERROR: an exception occurs while parsing the model response: list index out of range

Thought: The action of tapping on the chat with my wife does not match the given task of sending a message to her. It seems the user has navigated to a different interface. Documentation: The UI element with the number '2' opens a menu with options for adding friends, starting a group chat, scanning a code, and making a payment.

Autonomous exploration finished unexpectedly. 1 docs generated.

经常遇到越界的问题

mnotgod96 commented 6 months ago

目前对异常保护确实没有做得很完备,这里的错误看上去是因为模型没有遵循prompt的指示输出“Decision”字段,导致正则匹配时没有匹配到而产生的数组越界

tao-taoran commented 6 months ago

目前对异常保护确实没有做得很完备,这里的错误看上去是因为模型没有遵循prompt的指示输出“Decision”字段,导致正则匹配时没有匹配到而产生的数组越界

是不是因为通义千问的模型回复和gpt4的回复格式上不一样导致?

mnotgod96 commented 6 months ago

目前对异常保护确实没有做得很完备,这里的错误看上去是因为模型没有遵循prompt的指示输出“Decision”字段,导致正则匹配时没有匹配到而产生的数组越界

是不是因为通义千问的模型回复和gpt4的回复格式上不一样导致?

可以认为是通义千问的指令遵循能力比较弱,不能像GPT4V那样按照prompt给出的输出规范输出。例如这里的Decision是我要求模型必须输出的一个字段,但是通义千问没有遵循我的指令。

kx-kexi commented 5 months ago

为什么我使用gpt4也会出现在这个错误呢