diff --git a/plugin/piadmin/app/utils/openai/OpenAiClient.php b/plugin/piadmin/app/utils/openai/OpenAiClient.php index 4c060e6..dd571a0 100644 --- a/plugin/piadmin/app/utils/openai/OpenAiClient.php +++ b/plugin/piadmin/app/utils/openai/OpenAiClient.php @@ -15,16 +15,16 @@ class OpenAiClient $defaultPlatform = config('openai.default'); $platform = config('openai.platforms.' . $defaultPlatform, []); if (empty($platform)) { - throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置", '', '', []); + throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置"); } if (empty($platform['base_url'])) { - throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置base_url", '', '', []); + throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置base_url"); } if (empty($platform['api_key'])) { - throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置api_key", '', '', []); + throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置api_key"); } if (empty($platform['model'])) { - throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置model", '', '', []); + throw new ApiException("默认的AI平台: {$defaultPlatform} 未配置model"); } return $platform; }