|
@@ -261,8 +261,8 @@ class AIImageGenerationService
|
|
|
|
|
|
|
|
// 创建专用客户端,优化配置
|
|
// 创建专用客户端,优化配置
|
|
|
$gptClient = new Client([
|
|
$gptClient = new Client([
|
|
|
- 'timeout' => 600, // 10分钟超时
|
|
|
|
|
- 'connect_timeout' => 30, // 连接超时10秒
|
|
|
|
|
|
|
+ 'timeout' => 1800, // 超时
|
|
|
|
|
+ 'connect_timeout' => 120, // 连接超时10秒
|
|
|
'http_errors' => false, // 不自动抛出HTTP错误
|
|
'http_errors' => false, // 不自动抛出HTTP错误
|
|
|
'verify' => false, // 禁用SSL验证(如果有证书问题)
|
|
'verify' => false, // 禁用SSL验证(如果有证书问题)
|
|
|
'allow_redirects' => true,
|
|
'allow_redirects' => true,
|