@genkit-ai/compat-oai
Version:
Genkit AI framework plugin for OpenAI APIs.
19 lines • 566 B
JavaScript
import { compatOaiSpeechModelRef, SpeechConfigSchema } from "../audio.mjs";
function openAISpeechModelRef(params) {
return compatOaiSpeechModelRef({ ...params, namespace: "openai" });
}
const SUPPORTED_TTS_MODELS = {
"tts-1": openAISpeechModelRef({ name: "tts-1" }),
"tts-1-hd": openAISpeechModelRef({
name: "tts-1-hd"
}),
"gpt-4o-mini-tts": openAISpeechModelRef({
name: "gpt-4o-mini-tts",
configSchema: SpeechConfigSchema.omit({ speed: true })
})
};
export {
SUPPORTED_TTS_MODELS,
openAISpeechModelRef
};
//# sourceMappingURL=tts.mjs.map