trieve
trieve copied to clipboard
feature: api client package
Please indicate what issue this PR is related to and @ any maintainers who are relevant
Fields are now renamed so that
const test = await trieve.fetch("/api/chunk", "post", {
datasetId: "c65a2dd7-298e-48e6-ac90-e336ccbbe74f",
trDataset: "c65a2dd7-298e-48e6-ac90-e336ccbbe74f",
requestBody: {
chunk_html: "hello"
}
});
becomes just
const test = await trieve.fetch("/api/chunk", "post", {
datasetId: "c65a2dd7-298e-48e6-ac90-e336ccbbe74f",
data: {
chunk_html: "hello"
}
});
Same for organization id