mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-01 03:46:25 +02:00
add generate podcast action
This commit is contained in:
parent
ce658b91ea
commit
05a8bd1be3
2 changed files with 26 additions and 4 deletions
|
|
@ -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> => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue