Skip to content

Commit a980ed0

Browse files
committed
fix annotated
1 parent f79cca8 commit a980ed0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ async def upload_context(
113113
chat_service: Annotated[Any, Depends(get_chat_service)],
114114
session_manager: Annotated[Any, Depends(get_session_manager)],
115115
user: Annotated[User, Depends(require_all_permissions(("knowledge:upload", "chat:use")))],
116-
previous_response_id: Annotated[str | None, Form(None)] = None,
117-
endpoint: Annotated[str, Form("langflow")] = "langflow",
116+
previous_response_id: Annotated[str | None, Form()] = None,
117+
endpoint: Annotated[str, Form()] = "langflow",
118118
):
119119
"""Upload a file and add its content as context to the current conversation"""
120120
filename = file.filename or "uploaded_document"

0 commit comments

Comments
 (0)