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.

- -
+ {/* Toggles */}
diff --git a/servers/nextjs/app/(presentation-generator)/upload/components/UploadPage.tsx b/servers/nextjs/app/(presentation-generator)/upload/components/UploadPage.tsx index 198c4471..944f29ad 100644 --- a/servers/nextjs/app/(presentation-generator)/upload/components/UploadPage.tsx +++ b/servers/nextjs/app/(presentation-generator)/upload/components/UploadPage.tsx @@ -16,7 +16,7 @@ import { useDispatch } from "react-redux"; import { clearOutlines, setPresentationId } from "@/store/slices/presentationGeneration"; import { ConfigurationSelects } from "./ConfigurationSelects"; import { PromptInput } from "./PromptInput"; -import { ImageType, LanguageType, PresentationConfig, ToneType, VerbosityType } from "../type"; +import { LanguageType, PresentationConfig, ToneType, VerbosityType } from "../type"; import SupportingDoc from "./SupportingDoc"; import { Button } from "@/components/ui/button"; import { ChevronRight } from "lucide-react"; @@ -49,7 +49,6 @@ const UploadPage = () => { prompt: "", tone: ToneType.Default, verbosity: VerbosityType.Standard, - imageType: ImageType.Stock, instructions: "", includeTableOfContents: false, includeTitleSlide: false, @@ -169,7 +168,6 @@ const UploadPage = () => { 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)/upload/type.ts b/servers/nextjs/app/(presentation-generator)/upload/type.ts index 319eded2..9601adab 100644 --- a/servers/nextjs/app/(presentation-generator)/upload/type.ts +++ b/servers/nextjs/app/(presentation-generator)/upload/type.ts @@ -124,7 +124,6 @@ export interface PresentationConfig { prompt: string; tone: ToneType; verbosity: VerbosityType; - imageType: ImageType; instructions: string; includeTableOfContents: boolean; includeTitleSlide: boolean; @@ -146,7 +145,3 @@ export enum VerbosityType { Text_Heavy = "text-heavy", } -export enum ImageType { - Stock = "stock", - AIGenerated = "ai-generated", -}