[details=“系统信息”]
System:
OS: Windows 10 10.0.17763
CPU: (4) x64 Intel(R) Xeon(R) KVM CPU @ 2.50GHz
Binaries:
Node: 18.18.0
npm: 9.8.1
Koishi:
Core: 4.15.0
Console: 5.15.0[/details]
[details=“报错”]
2023-10-07 09:40:01 [D] message [435782475] /nai test
2023-10-07 09:40:32 [W] session AxiosError: Request failed with status code 500
at settle (D:\koishi\node_modules\axios\dist\node\axios.cjs:1913:12)
at IncomingMessage.handleStreamEnd (D:\koishi\node_modules\axios\dist\node\axios.cjs:2995:11)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1368:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2023-10-07 09:40:32 [W] session AxiosError: Request failed with status code 500
at request (D:\koishi\node_modules\cordis-axios\lib\index.js:269:21)
at Internal.http (D:\koishi\node_modules\cordis-axios\lib\index.js:288:30)
at [as uploadFile] (D:\koishi\node_modules\koishi-plugin-adapter-red\lib\types\internal.js:37:33)
at RedMessageEncoder.image (D:\koishi\node_modules\koishi-plugin-adapter-red\lib\message.js:134:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RedMessageEncoder.visit (D:\koishi\node_modules\koishi-plugin-adapter-red\lib\message.js:272:17)
at async RedMessageEncoder.render (D:\koishi\node_modules@satorijs\core\lib\index.cjs:568:7)
at async RedMessageEncoder.send (D:\koishi\node_modules@satorijs\core\lib\index.cjs:588:5)
at async RedBot.sendMessage (D:\koishi\node_modules@satorijs\core\lib\index.cjs:363:22)
at async iterate (D:\koishi\node_modules\koishi-plugin-novelai\lib\index.js:429:32)[/details]
使用的是t4大佬的API
用web可以正常生成图片,但是速度很慢
用的适配器是red