Skip to content

Commit

Permalink
chore(schema): rename field in Files to indices
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Sep 23, 2024
1 parent 9832542 commit 8bf80a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/api/v1/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def upload_files(

responses.append(file_id)

return Files(documents=responses)
return Files(indices=responses)

@post('/{chat_id:str}/query')
async def query(
Expand Down
4 changes: 2 additions & 2 deletions server/schemas/v1/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Files(Struct):
Attributes
----------
documents (list[File]) : the document schemas
indices (list[File]) : the document schemas
"""

documents: Annotated[list[str], Meta(examples=['glsODUdnaUei_A_IxfSRI'])]
indices: Annotated[list[str], Meta(examples=['glsODUdnaUei_A_IxfSRI'])]

0 comments on commit 8bf80a4

Please sign in to comment.