chore: images style

This commit is contained in:
jialin
2024-11-25 20:07:17 +08:00
parent 7fcd005f06
commit 5e0772fae9
12 changed files with 79 additions and 151 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ export const createImages = async (
export const textToSpeech = async (params: any, options?: any) => {
const res = await fetch(AUDIO_TEXT_TO_SPEECH_API, {
method: 'POST',
body: JSON.stringify(params),
body: JSON.stringify(params.data),
signal: params.signal
});
if (!res.ok) {
@@ -102,7 +102,7 @@ export const textToSpeech = async (params: any, options?: any) => {
export const speechToText = async (params: any, options?: any) => {
const res = await fetch(AUDIO_SPEECH_TO_TEXT_API, {
method: 'POST',
body: JSON.stringify(params),
body: JSON.stringify(params.data),
signal: params.signal
});
if (!res.ok) {