Harden vision vector search and embedding jobs.
Add point search, circuit-breaking, and safer gateway limits so artwork similarity lookups fail closed instead of hanging the request path.
This commit is contained in:
@@ -38,6 +38,9 @@ function fakeFileSearchOk(): void
|
||||
{
|
||||
Http::fake(function ($request) {
|
||||
$url = $request->url();
|
||||
if (str_contains($url, '/vectors/search/point')) {
|
||||
return Http::response(['detail' => 'Point not found'], 404);
|
||||
}
|
||||
if (str_contains($url, '/vectors/search')) {
|
||||
return Http::response(['results' => []], 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user