-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
文本内容提取无法正确解析结果 #1532
Comments
返回值不正确呢 |
AI返回内容只能是 JSON 字符串,不能带这种巴拉巴拉解释一大堆的这种回复,并且不能是 Markdown 形式的,是吗? |
印象中,是有一点兼容处理的,会截取括号之间的内容,待会去看看。 |
你的日志里面都明显看到 function=> undefined 了,你这个模型不支持functionCall 或者toolChoice,没有返回指定的结果 但是你的模型给你返回了带有json格式的结果,你应该用提示词模式尝试提取,配置提示词模式的文本提取具体请参照官方config.json配置参数 提示词模式文本提取代码如下:
|
测试有效,已改为提示词模式,非常感谢解答问题 |
例行检查
你的版本
4.8
问题描述, 日志截图
问题截图:
答复截图:
日志位置:
复现步骤
预期结果
从返回结果中获取到真正的json并解析出提取的内容。
相关截图
The text was updated successfully, but these errors were encountered: