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

为什么不用json格式的模型输出,而使用这种正则匹配的方式来解析响应 #87

Open
a798047815 opened this issue Jul 19, 2024 · 2 comments

Comments

@a798047815
Copy link

用json格式应该解析起来更简单,请问用正则是有什么考虑吗

@MachineDora
Copy link

可能大模型不能保证输出的固定格式。

@WOWCharlotte
Copy link

你在提示词里面加一句要求大模型用json格式输出就可以了,通义的视觉模型由于没有result_format参数所以没法规定json格式输出,但实际操作中只要在promt里加一句请用json格式输出就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants