diff --git a/src/Endpoints/Delegates/HandlesSettings.php b/src/Endpoints/Delegates/HandlesSettings.php index b4c18299..edca244a 100644 --- a/src/Endpoints/Delegates/HandlesSettings.php +++ b/src/Endpoints/Delegates/HandlesSettings.php @@ -364,7 +364,7 @@ public function resetProximityPrecision(): array // Settings - Experimental: Embedders (hybrid search) - public function getEmbedders(): array + public function getEmbedders(): ?array { return $this->http->get(self::PATH.'/'.$this->uid.'/settings/embedders'); } diff --git a/tests/Settings/EmbeddersTest.php b/tests/Settings/EmbeddersTest.php index 21129b16..b16feb20 100644 --- a/tests/Settings/EmbeddersTest.php +++ b/tests/Settings/EmbeddersTest.php @@ -22,7 +22,7 @@ public function testGetEmbedders(): void $index = $this->createEmptyIndex($this->safeIndexName('books-1')); $embedders = $index->getEmbedders(); - $this->assertEquals([], $embedders); + $this->assertEmpty($embedders); } public function testUpdateEmbeddersWithOpenAi(): void @@ -98,7 +98,6 @@ public function testResetEmbedders(): void $this->assertIsValidPromise($promise); $index->waitForTask($promise['taskUid']); - $embedders = $index->getEmbedders(); - $this->assertEquals([], $embedders); + $this->assertEmpty($index->getEmbedders()); } }