File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ public function resetProximityPrecision(): array
364
364
365
365
// Settings - Experimental: Embedders (hybrid search)
366
366
367
- public function getEmbedders (): array
367
+ public function getEmbedders (): ? array
368
368
{
369
369
return $ this ->http ->get (self ::PATH .'/ ' .$ this ->uid .'/settings/embedders ' );
370
370
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function testGetEmbedders(): void
22
22
$ index = $ this ->createEmptyIndex ($ this ->safeIndexName ('books-1 ' ));
23
23
$ embedders = $ index ->getEmbedders ();
24
24
25
- $ this ->assertEquals ([], $ embedders );
25
+ $ this ->assertEmpty ( $ embedders );
26
26
}
27
27
28
28
public function testUpdateEmbeddersWithOpenAi (): void
@@ -98,7 +98,6 @@ public function testResetEmbedders(): void
98
98
$ this ->assertIsValidPromise ($ promise );
99
99
$ index ->waitForTask ($ promise ['taskUid ' ]);
100
100
101
- $ embedders = $ index ->getEmbedders ();
102
- $ this ->assertEquals ([], $ embedders );
101
+ $ this ->assertEmpty ($ index ->getEmbedders ());
103
102
}
104
103
}
You can’t perform that action at this time.
0 commit comments