Add sserver actions

This commit is contained in:
CREDO23 2025-10-23 01:28:07 +02:00 committed by thierryverse
parent 4c22f4a953
commit ce658b91ea
5 changed files with 71 additions and 42 deletions

View file

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