|
|
@ -23,7 +23,7 @@ const ErrorCodeMessage: Record<string, string> = {
|
|
|
|
500: '[OpenAI] 服务器繁忙,请稍后再试 | Internal Server Error',
|
|
|
|
500: '[OpenAI] 服务器繁忙,请稍后再试 | Internal Server Error',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const timeoutMs: number = !isNaN(+process.env.TIMEOUT_MS) ? +process.env.TIMEOUT_MS : 30 * 1000
|
|
|
|
const timeoutMs: number = !isNaN(+process.env.TIMEOUT_MS) ? +process.env.TIMEOUT_MS : 100 * 1000
|
|
|
|
const disableDebug: boolean = process.env.OPENAI_API_DISABLE_DEBUG === 'true'
|
|
|
|
const disableDebug: boolean = process.env.OPENAI_API_DISABLE_DEBUG === 'true'
|
|
|
|
|
|
|
|
|
|
|
|
let apiModel: ApiModel
|
|
|
|
let apiModel: ApiModel
|
|
|
|