j***@sina.com
j***@sina.com
  • 发布:2024-02-28 15:11
  • 更新:2024-02-28 15:11
  • 阅读:40

openai开启流式解析数据报错

分类:uniCloud

provider为openai,已填写apikey和proxy,开启stream,报下面的错误:应该是uniCloud.ai系统处理流式数据时应用JSON.parse解析非json数据引起的。怎么解决

SyntaxError: Unexpected token < in JSON at position 0
14:55:52.389 [本地调试] at JSON.parse (<anonymous>)
14:55:52.389 [本地调试] at IncomingMessage.emit (node:events:513:28)
14:55:52.389 [本地调试] at IncomingMessage.Readable.read (node:internal/streams/readable:527:10)
14:55:52.389 [本地调试] at flow (node:internal/streams/readable:1011:34)
14:55:52.389 [本地调试] at resume_ (node:internal/streams/readable:992:3)
14:55:52.389 [本地调试] at processTicksAndRejections (node:internal/process/task_queues:83:21)

2024-02-28 15:11 负责人:无 分享
已邀请:

要回复问题请先登录注册