Open chenk-gd opened 4 days ago
传过去的stop参数:['✿RESULT✿', '✿RESULT✿:', '✿RESULT✿:\n', 'Observation:', 'Observation:\n'],超过了OpenAI的限制
我查了下Up to 4 sequences where the API will stop generating further tokens. 所以是最多4个吗。。。
Up to 4 sequences where the API will stop generating further tokens.
那可以尝试安装下最新的qwen-agent(v0.0.6版本)(pip install -U "qwen-agent>=0.0.6"),那个版本可能刚好是4个stop words。
pip install -U "qwen-agent>=0.0.6"
openai确实是限制了最多4个(https://help.openai.com/en/articles/5072263-how-do-i-use-stop-sequences-in-the-openai-api),就是不知道为什么要做这个限制...
传过去的stop参数:['✿RESULT✿', '✿RESULT✿:', '✿RESULT✿:\n', 'Observation:', 'Observation:\n'],超过了OpenAI的限制