mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
remove the optional pydantic typing from the files param
This commit is contained in:
parent
4a7efdc552
commit
b1eb564706
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ class IndexerInput(BaseModel):
|
|||
@requires(["authenticated"])
|
||||
async def put_content(
|
||||
request: Request,
|
||||
files: Optional[List[UploadFile]] = [],
|
||||
files: List[UploadFile] = [],
|
||||
t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
|
||||
client: Optional[str] = None,
|
||||
user_agent: Optional[str] = Header(None),
|
||||
|
@ -103,7 +103,7 @@ async def put_content(
|
|||
@requires(["authenticated"])
|
||||
async def patch_content(
|
||||
request: Request,
|
||||
files: Optional[List[UploadFile]] = [],
|
||||
files: List[UploadFile] = [],
|
||||
t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
|
||||
client: Optional[str] = None,
|
||||
user_agent: Optional[str] = Header(None),
|
||||
|
|
Loading…
Reference in a new issue