docker下TIMEOUT_MS变量不符合预期
dsparrow opened this issue · comments
docker 下配置了环境变量.TIMEOUT_MS,预期 60 秒钟
TIMEOUT_MS='60000'
但页面上 输入问题后,2 秒钟就返回报错。看错误日志。
Server is running on port 3002
sendMessage (38 tokens) {
max_tokens: 1000,
model: 'gpt-3.5-turbo',
temperature: 0.8,
top_p: 1,
presence_penalty: 1,
messages: [
{
role: 'system',
content: "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully. Respond using markdown."
},
{ role: 'user', content: '谁是鲁迅', name: undefined }
],
stream: true
}
FetchError: request to https://burn.hair/v1/chat/completions failed, reason:
at ClientRequest.<anonymous> (file:///app/node_modules/.pnpm/node-fetch@3.3.0/node_modules/node-fetch/src/index.js:108:11)
at ClientRequest.emit (node:events:530:35)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
erroredSysCall: undefined
}
This issue is stale because it has been open for 10 days with no activity.
This issue was closed because it has been inactive for 2 days since being marked as stale.