feat: Add control for how message content is split for TTS generation reqs

This commit is contained in:
kiosion
2024-08-25 20:03:21 -04:00
parent f30428754f
commit 3967c34261
8 changed files with 277 additions and 157 deletions
+5 -1
View File
@@ -132,7 +132,11 @@ export const synthesizeOpenAISpeech = async (
return res;
};
export const getModels = async (token: string = '') => {
interface AvailableModelsResponse {
models: { name: string; id: string }[] | { id: string }[];
}
export const getModels = async (token: string = ''): Promise<AvailableModelsResponse> => {
let error = null;
const res = await fetch(`${AUDIO_API_BASE_URL}/models`, {