This commit is contained in:
2026-05-01 23:40:14 +08:00
commit b8f599a617
3867 changed files with 478663 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace app\service\LLM;
use RuntimeException;
class LLMRequestException extends RuntimeException
{
public function __construct(
string $message,
private readonly ?int $statusCode = null,
private readonly ?string $providerCode = null,
private readonly ?array $payload = null
) {
parent::__construct($message, $statusCode ?? 0);
}
public function statusCode(): ?int
{
return $this->statusCode;
}
public function providerCode(): ?string
{
return $this->providerCode;
}
public function payload(): ?array
{
return $this->payload;
}
}