chg sync endpoint
PHP Tests / php-tests (push) Waiting to run

This commit is contained in:
Nyan Lin Paing
2026-09-03 00:33:10 +07:00
parent d1ce73e7ff
commit 3768b82932
4 changed files with 16 additions and 16 deletions
@@ -282,7 +282,7 @@ class BnfexpressAdminClient
*/
public function syncSuggestions(): array
{
return $this->request('POST', '/admin/suggestions/sync-chroma');
return $this->request('POST', '/admin/suggestions/sync');
}
/**
@@ -290,7 +290,7 @@ class BnfexpressAdminClient
*/
public function getSuggestionSyncStatus(string $jobId): array
{
return $this->request('GET', "/admin/suggestions/sync-chroma/{$jobId}");
return $this->request('GET', "/admin/suggestions/sync/{$jobId}");
}
/**
@@ -298,7 +298,7 @@ class BnfexpressAdminClient
*/
public function syncOneSuggestion(int|string $id): array
{
return $this->request('POST', "/admin/suggestions/{$id}/sync-chroma");
return $this->request('POST', "/admin/suggestions/{$id}/sync");
}
/**
@@ -314,7 +314,7 @@ class BnfexpressAdminClient
*/
public function deleteSuggestionEmbedding(int|string $id): array
{
return $this->request('DELETE', "/admin/suggestions/{$id}/chroma");
return $this->request('DELETE', "/admin/suggestions/{$id}/embedding");
}
// --- Request plumbing ------------------------------------------------