Keep similar-ai from tripping the global circuit on a lone URL 502, clamp Qdrant search to 100, and add Server-Timing plus slow-request logging. Studio shared props, Academy S3 exists caching, heat chunking, and Redis/scheduler hygiene stay in this rollout.
22 lines
474 B
PHP
22 lines
474 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services\Vision;
|
|
|
|
use RuntimeException;
|
|
use Throwable;
|
|
|
|
final class VectorGatewayException extends RuntimeException
|
|
{
|
|
public function __construct(
|
|
string $message,
|
|
public readonly string $operation,
|
|
public readonly ?int $httpStatus = null,
|
|
public readonly bool $circuitWorthy = false,
|
|
?Throwable $previous = null,
|
|
) {
|
|
parent::__construct($message, 0, $previous);
|
|
}
|
|
}
|