diff --git a/servers/nextjs/app/(presentation-generator)/documents-preview/components/DocumentPreviewPage.tsx b/servers/nextjs/app/(presentation-generator)/documents-preview/components/DocumentPreviewPage.tsx index 68612808..06d44619 100644 --- a/servers/nextjs/app/(presentation-generator)/documents-preview/components/DocumentPreviewPage.tsx +++ b/servers/nextjs/app/(presentation-generator)/documents-preview/components/DocumentPreviewPage.tsx @@ -159,7 +159,6 @@ const DocumentsPreviewPage: React.FC = () => { include_table_of_contents: !!config?.includeTableOfContents, include_title_slide: !!config?.includeTitleSlide, web_search: !!config?.webSearch, - image_type: config?.imageType, } ); diff --git a/servers/nextjs/app/(presentation-generator)/services/api/presentation-generation.ts b/servers/nextjs/app/(presentation-generator)/services/api/presentation-generation.ts index e249ba9c..f932bb54 100644 --- a/servers/nextjs/app/(presentation-generator)/services/api/presentation-generation.ts +++ b/servers/nextjs/app/(presentation-generator)/services/api/presentation-generation.ts @@ -60,7 +60,7 @@ export class PresentationGenerationApi { include_table_of_contents, include_title_slide, web_search, - image_type, + }: { content: string; n_slides: number | null; @@ -72,7 +72,6 @@ export class PresentationGenerationApi { include_table_of_contents?: boolean; include_title_slide?: boolean; web_search?: boolean; - image_type?: string | null; }) { try { const response = await fetch( @@ -91,7 +90,6 @@ export class PresentationGenerationApi { include_table_of_contents, include_title_slide, web_search, - image_type, }), cache: "no-cache", } diff --git a/servers/nextjs/app/(presentation-generator)/upload/components/ConfigurationSelects.tsx b/servers/nextjs/app/(presentation-generator)/upload/components/ConfigurationSelects.tsx index be86a274..618f7eaa 100644 --- a/servers/nextjs/app/(presentation-generator)/upload/components/ConfigurationSelects.tsx +++ b/servers/nextjs/app/(presentation-generator)/upload/components/ConfigurationSelects.tsx @@ -5,7 +5,7 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { ImageType, LanguageType, PresentationConfig, ToneType, VerbosityType } from "../type"; +import { LanguageType, PresentationConfig, ToneType, VerbosityType } from "../type"; import { useState } from "react"; import { Check, ChevronsUpDown, SlidersHorizontal } from "lucide-react"; import { Button } from "@/components/ui/button"; @@ -201,7 +201,6 @@ export function ConfigurationSelects({ const [advancedDraft, setAdvancedDraft] = useState({ tone: config.tone, verbosity: config.verbosity, - imageType: config.imageType, instructions: config.instructions, includeTableOfContents: config.includeTableOfContents, includeTitleSlide: config.includeTitleSlide, @@ -213,7 +212,6 @@ export function ConfigurationSelects({ setAdvancedDraft({ tone: config.tone, verbosity: config.verbosity, - imageType: config.imageType, instructions: config.instructions, includeTableOfContents: config.includeTableOfContents, includeTitleSlide: config.includeTitleSlide, @@ -226,7 +224,6 @@ export function ConfigurationSelects({ const handleSaveAdvanced = () => { onConfigChange("tone", advancedDraft.tone); onConfigChange("verbosity", advancedDraft.verbosity); - onConfigChange("imageType", advancedDraft.imageType); onConfigChange("instructions", advancedDraft.instructions); onConfigChange("includeTableOfContents", advancedDraft.includeTableOfContents); onConfigChange("includeTitleSlide", advancedDraft.includeTitleSlide); @@ -308,26 +305,7 @@ export function ConfigurationSelects({ - {/* Image Type */} -
Choose whether images should be stock photos or AI-generated.
- -