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"])
|
@requires(["authenticated"])
|
||||||
async def put_content(
|
async def put_content(
|
||||||
request: Request,
|
request: Request,
|
||||||
files: Optional[List[UploadFile]] = [],
|
files: List[UploadFile] = [],
|
||||||
t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
|
t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
|
||||||
client: Optional[str] = None,
|
client: Optional[str] = None,
|
||||||
user_agent: Optional[str] = Header(None),
|
user_agent: Optional[str] = Header(None),
|
||||||
|
@ -103,7 +103,7 @@ async def put_content(
|
||||||
@requires(["authenticated"])
|
@requires(["authenticated"])
|
||||||
async def patch_content(
|
async def patch_content(
|
||||||
request: Request,
|
request: Request,
|
||||||
files: Optional[List[UploadFile]] = [],
|
files: List[UploadFile] = [],
|
||||||
t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
|
t: Optional[Union[state.SearchType, str]] = state.SearchType.All,
|
||||||
client: Optional[str] = None,
|
client: Optional[str] = None,
|
||||||
user_agent: Optional[str] = Header(None),
|
user_agent: Optional[str] = Header(None),
|
||||||
|
|
Loading…
Reference in a new issue