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

生成摘要失败 #1740

Open
5 tasks done
YuziO2 opened this issue May 29, 2024 · 6 comments
Open
5 tasks done

生成摘要失败 #1740

YuziO2 opened this issue May 29, 2024 · 6 comments

Comments

@YuziO2
Copy link

YuziO2 commented May 29, 2024

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

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Copy link

linear bot commented May 29, 2024

@tusik
Copy link
Contributor

tusik commented Jun 5, 2024

应该是填写到/v1为止,看这个站的话应该使用https://api.gptapi.us/v1 ,但是作者在这里使用了function calling如果这个站不支持的话应该还是会报其他错误

@Innei
Copy link
Member

Innei commented Jun 17, 2024

需要源站支持 function calling

@tusik
Copy link
Contributor

tusik commented Jun 17, 2024

需要源站支持 function calling

我有个问题,ai摘要自动生成后不会自动添加到文章的摘要里的吗

@Innei
Copy link
Member

Innei commented Jun 18, 2024

不会

@YuziO2
Copy link
Author

YuziO2 commented Aug 3, 2024

现在最新版尝试了一下,返回的是这样:
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整篇文章通过真实细腻的描述,将一个即将毕业的学生从工作到校园经历的种种,生动地展现在读者眼前。这是一段充满了生活的体验、朋友的相聚、新鲜事物的探索、面对挑战的无奈以及对过往的感怀。是一段值得珍藏的校园记忆。"}]

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