Spaces:
Running
Running
Update document_generator.py
Browse files- document_generator.py +4 -1
document_generator.py
CHANGED
@@ -546,7 +546,10 @@ async def generate_markdown_document_stream_endpoint(request: MarkdownDocumentRe
|
|
546 |
|
547 |
@cache(expire=600*24*7)
|
548 |
@router.post("/generate-document/json", response_model=JsonDocumentResponse)
|
549 |
-
async def generate_document_outline_endpoint(
|
|
|
|
|
|
|
550 |
ai_client = AIClient()
|
551 |
document_generator = DocumentGenerator(ai_client)
|
552 |
vision_tools = VisionTools(ai_client)
|
|
|
546 |
|
547 |
@cache(expire=600*24*7)
|
548 |
@router.post("/generate-document/json", response_model=JsonDocumentResponse)
|
549 |
+
async def generate_document_outline_endpoint(
|
550 |
+
request: MarkdownDocumentRequest = Depends(),
|
551 |
+
images: List[UploadFile] = File(None)
|
552 |
+
):
|
553 |
ai_client = AIClient()
|
554 |
document_generator = DocumentGenerator(ai_client)
|
555 |
vision_tools = VisionTools(ai_client)
|