Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4v格式的请求下,缺少“text”参数程序崩溃会报错nil #1633

Closed
ye4293 opened this issue Jul 10, 2024 · 2 comments · Fixed by #1634
Closed

4v格式的请求下,缺少“text”参数程序崩溃会报错nil #1633

ye4293 opened this issue Jul 10, 2024 · 2 comments · Fixed by #1634
Labels
bug Something isn't working

Comments

@ye4293
Copy link
Collaborator

ye4293 commented Jul 10, 2024

例行检查

  • [ x] 我已确认目前没有类似 issue
  • [ x] 我已确认我已升级到最新版本
  • [ x] 我已完整查看过项目 README,尤其是常见问题部分
  • [ x] 我理解并愿意跟进此 issue,协助测试和提供反馈
  • [ x] 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
在使用openai的4o识图,即用4v的格式来传递数据时,在oneapi中,如果下图的“text”参数,没有传递,就会在第二个图的代码处引发nil崩溃。征集下处理方案。是直接把错误抛给用户,还是在内部处理了没传递“text”的时候,直接把这个值设置为空。
image
image

复现步骤

预期结果

相关截图
如果没有的话,请删除此节。

@ye4293 ye4293 added the bug Something isn't working label Jul 10, 2024
@ye4293
Copy link
Collaborator Author

ye4293 commented Jul 10, 2024

19868291c258a28269a72a089223bec
没传递的时候就是这种报错

@ye4293
Copy link
Collaborator Author

ye4293 commented Jul 10, 2024

我更倾向于把这个错误抛出给用户,让用户知道啥情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant