mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-30 21:59:46 +02:00
fix key down events
This commit is contained in:
parent
2902fd6d28
commit
87c5d24f29
4 changed files with 9 additions and 9 deletions
|
|
@ -28,8 +28,6 @@ export const getPodcastByChatId = async (chatId: string, authToken: string) => {
|
|||
|
||||
export const generatePodcast = async (request: GeneratePodcastRequest, authToken: string) => {
|
||||
try {
|
||||
const { podcast_title = "SurfSense Podcast" } = request;
|
||||
|
||||
const response = await fetch(
|
||||
`${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL}/api/v1/podcasts/generate/`,
|
||||
{
|
||||
|
|
@ -38,7 +36,7 @@ export const generatePodcast = async (request: GeneratePodcastRequest, authToken
|
|||
Authorization: `Bearer ${authToken}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ ...request, podcast_title }),
|
||||
body: JSON.stringify(request),
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue