mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
Add sserver actions
This commit is contained in:
parent
4c22f4a953
commit
ce658b91ea
5 changed files with 71 additions and 42 deletions
15
surfsense_web/components/chat/ChatPannel/actions.ts
Normal file
15
surfsense_web/components/chat/ChatPannel/actions.ts
Normal 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",
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue