生成摘要失败
Describe the bug
生成摘要时,接口返回错误:
{ "ok": 0, "code": 200002, "message": "AI 服务异常: Cannot read properties of undefined (reading '0')" }
在设置中的填写: Endpoint:https://www.gptapi.us
Reproduction
点击生成总结
System Info
System:
OS: Linux 5.4 Alpine Linux
CPU: (2) x64 Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz
Memory: 128.89 MB / 919.82 MB
Container: Yes
Shell: 1.36.1 - /bin/ash
Binaries:
Node: 20.10.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.3 - /usr/local/bin/npm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
应该是填写到/v1为止,看这个站的话应该使用https://api.gptapi.us/v1 ,但是作者在这里使用了function calling如果这个站不支持的话应该还是会报其他错误
需要源站支持 function calling
需要源站支持 function calling
我有个问题,ai摘要自动生成后不会自动添加到文章的摘要里的吗
不会
现在最新版尝试了一下,返回的是这样: No function_call in message [{"message":{"lc":1,"type":"constructor","id":["langchain_core","messages","AIMessage"],"kwargs":{"content":"最后,写下此文,记录这段如掌心流沙般的时光,无疑是一种情感的宣泄,也是对青春岁月的深情告别。你通过文字,细致地勾勒出那段即将走远的日子,表达出无尽的怀念与不舍。\n\n整篇文章通过真实细腻的描述,将一个即将毕业的学生从工作到校园经历的种种,生动地展现在读者眼前。这是一段充满了生活的体验、朋友的相聚、新鲜事物的探索、面对挑战的无奈以及对过往的感怀。是一段值得珍藏的校园记忆。","tool_calls":[],"invalid_tool_calls":[],"additional_kwargs":{},"response_metadata":{"tokenUsage":{},"finish_reason":"stop","system_fingerprint":"fp_【已打码】"},"id":"chatcmpl-【已打码】"}},"text":"最后,写下此文,记录这段如掌心流沙般的时光,无疑是一种情感的宣泄,也是对青春岁月的深情告别。你通过文字,细致地勾勒出那段即将走远的日子,表达出无尽的怀念与不舍。\n\n整篇文章通过真实细腻的描述,将一个即将毕业的学生从工作到校园经历的种种,生动地展现在读者眼前。这是一段充满了生活的体验、朋友的相聚、新鲜事物的探索、面对挑战的无奈以及对过往的感怀。是一段值得珍藏的校园记忆。"}]