Skip to content

Commit 31ba4dd

Browse files
committed
Update KnowledgeBaseClient.php
1 parent ef33926 commit 31ba4dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client/KnowledgeBaseClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ public function query(string $text, int $k = 10, ?array $entities = null, ?array
7878
}
7979

8080
if ($where) {
81-
$params['where'] = json_encode($where);
81+
$params['where'] = $where;
8282
}
8383

84-
$response = $this->client->get('/query', $params)
84+
$response = $this->client->post('/query', $params)
8585
->throw()
8686
->json();
8787

0 commit comments

Comments
 (0)