add generate podcast action

This commit is contained in:
CREDO23 2025-10-23 16:43:28 +02:00 committed by thierryverse
parent ce658b91ea
commit 05a8bd1be3
2 changed files with 26 additions and 4 deletions

View file

@ -1,9 +1,15 @@
"use server";
import type { PodCastInterface } from "./ChatPanelContainer";
import type { PodCastInterface, PodcastGenerationState } from "./ChatPanelContainer";
export const generatePodCastAction = async (formData: { prompt: string; chatId: string }) => {
console.log("Generating podcast");
export const generatePodCastAction = async (
formData: PodcastGenerationState
): Promise<PodCastInterface> => {
return Promise.resolve({
title: "Test",
podcast_transcript: "Test",
search_space_id: "Test",
});
};
export const getChatPodcastPromise = async (chatId: string): Promise<PodCastInterface> => {