From 0eb95ccbd8b1a43c481a060efbf013ee27749dcf Mon Sep 17 00:00:00 2001 From: qingfhuang Date: Mon, 11 May 2026 15:17:05 +0800 Subject: [PATCH] fix(client): correct GetChunkByIDOnly endpoint Use /api/v1/chunks/by-id/{id} to match backend route. Co-authored-by: Cursor --- client/chunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/chunk.go b/client/chunk.go index 535e78f9..c721428f 100644 --- a/client/chunk.go +++ b/client/chunk.go @@ -156,7 +156,7 @@ func (c *Client) DeleteChunk(ctx context.Context, knowledgeID string, chunkID st // GetChunkByIDOnly retrieves a chunk by its ID without requiring knowledge ID func (c *Client) GetChunkByIDOnly(ctx context.Context, chunkID string) (*Chunk, error) { - path := fmt.Sprintf("/api/v1/chunks/get-by-id/%s", chunkID) + path := fmt.Sprintf("/api/v1/chunks/by-id/%s", chunkID) resp, err := c.doRequest(ctx, http.MethodGet, path, nil, nil) if err != nil { return nil, err