Skip to content

Commit

Permalink
add missing params to file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Oct 15, 2024
1 parent 0d9712f commit d4e7ee8
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/six-steaks-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ccat-api": patch
---

add missing params to file upload
12 changes: 12 additions & 0 deletions api/models/BodyUploadFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@
/* eslint-disable */
export type BodyUploadFile = {
file: Blob;
/**
* Maximum length of each chunk after the document is split (in tokens)
*/
chunk_size?: (number | null);
/**
* Chunk overlap (in tokens)
*/
chunk_overlap?: (number | null);
/**
* Metadata to be stored with each chunk (e.g. author, category, etc.). Since we are passing this along side form data, must be a JSON string.
*/
metadata?: string;
};

30 changes: 30 additions & 0 deletions catapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,36 @@
"title": "File",
"type": "string",
"format": "binary"
},
"chunk_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Chunk Size",
"description": "Maximum length of each chunk after the document is split (in tokens)"
},
"chunk_overlap": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Chunk Overlap",
"description": "Chunk overlap (in tokens)"
},
"metadata": {
"type": "string",
"title": "Metadata",
"description": "Metadata to be stored with each chunk (e.g. author, category, etc.). Since we are passing this along side form data, must be a JSON string.",
"default": "{}"
}
}
},
Expand Down

0 comments on commit d4e7ee8

Please sign in to comment.