diff --git a/README.md b/README.md index 01486e51..0d9154f0 100644 --- a/README.md +++ b/README.md @@ -160,9 +160,7 @@ Endpoint: `/api/v1/ppt/presentation/generate` Method: `POST` -Content-Type: `multipart/form-data` - -> **Note**: Make sure to set `Content-Type` as `multipart/form-data` and not `application/json`. +Content-Type: `application/json` #### Request Body @@ -172,7 +170,6 @@ Content-Type: `multipart/form-data` | n_slides | integer | No | Number of slides to generate (default: 8, min: 5, max: 15) | | language | string | No | Language for the presentation (default: "English") | | template | string | No | Presentation template (default: "general"). Available options: "classic", "general", "modern", "professional" + Custom templates | -| documents | File[] | No | Optional list of document files to include in the presentation. Supported file types: PDF, TXT, PPTX, DOCX | | export_as | string | No | Export format ("pptx" or "pdf", default: "pptx") | #### Response @@ -189,11 +186,14 @@ Content-Type: `multipart/form-data` ```bash curl -X POST http://localhost:5000/api/v1/ppt/presentation/generate \ - -F "prompt=Introduction to Machine Learning" \ - -F "n_slides=5" \ - -F "language=English" \ - -F "template=general" \ - -F "export_as=pptx" + -H "Content-Type: application/json" \ + -d '{ + "prompt": "Introduction to Machine Learning", + "n_slides": 5, + "language": "English", + "template": "general", + "export_as": "pptx" + }' ``` #### Example Response diff --git a/servers/nextjs/app/(presentation-generator)/pdf-maker/PdfMakerPage.tsx b/servers/nextjs/app/(presentation-generator)/pdf-maker/PdfMakerPage.tsx index dcfd31e8..1c95bc44 100644 --- a/servers/nextjs/app/(presentation-generator)/pdf-maker/PdfMakerPage.tsx +++ b/servers/nextjs/app/(presentation-generator)/pdf-maker/PdfMakerPage.tsx @@ -122,7 +122,7 @@ const PresentationPage = ({ presentation_id }: { presentation_id: string }) => { presentationData.slides.length > 0 && presentationData.slides.map((slide: any, index: number) => ( // [data-speaker-note] is used to extract the speaker note from the slide for export to pptx -
Speaker notes
+