feat: Add control for how message content is split for TTS generation reqs
This commit is contained in:
@@ -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`, {
|
||||
|
||||
Reference in New Issue
Block a user