Closed chenditc closed 7 months ago
在 Llama 模型上可以复现
GPT4 vision现在反而不能用了,在stop没有设置的时候会报错
{ "error": { "message": "3 validation errors for Request\nbody -> stop\n str type expected (type=type_error.str)\nbody -> stop\n ensure this value has at least 1 items (type=value_error.list.min_items; limit_value=1)\nbody -> stop\n ensure this value has at least 1 items (type=value_error.list.min_items; limit_value=1)", "type": "invalid_request_error", "param": null, "code": null } }
GPT4V修复了
作者自述
描述
修复 Bug:https://github.com/GaiZhenbiao/ChuanhuChatGPT/issues/1007
当模型初始化时,stop sequence 设置为空字符串,某些模型会在生成回复时直接停止回复,导致切换模型后失败。如果调用 set_stop_sequence 后可以 workaround。本质上是 stop sequence 的数据类型错了。
相关问题
[Bug]: 每次切换模型后回复都为空 #1007
补充信息
无