genkitx-azure-openai
Version:
Firebase Genkit AI framework plugin for Azure OpenAI APIs.
62 lines • 1.44 kB
JavaScript
import {
__async
} from "./chunk-MLCSNVBT.mjs";
import { genkitPlugin } from "genkit/plugin";
import { AzureOpenAI } from "openai";
import { dallE3, dallE3Model } from "./dalle.js";
import { whisper1, whisper1Model } from "./whisper.js";
import {
openaiEmbedder,
SUPPORTED_EMBEDDING_MODELS,
textEmbedding3Large,
textEmbedding3Small,
textEmbeddingAda002
} from "./embedder.js";
import {
gpt35Turbo,
gpt4,
gptO1Preview,
gptO1Mini,
gptO1,
gpt4o,
gptO3Mini,
gpt45,
gptModel,
SUPPORTED_GPT_MODELS
} from "./gpt.js";
import { SUPPORTED_TTS_MODELS, ttsModel, tts1, tts1Hd } from "./tts.js";
const azureOpenAI = (options) => genkitPlugin("azure-openai", (ai) => __async(void 0, null, function* () {
const client = new AzureOpenAI(options);
for (const name of Object.keys(SUPPORTED_GPT_MODELS)) {
gptModel(ai, name, client);
}
dallE3Model(ai, client);
whisper1Model(ai, client);
for (const name of Object.keys(SUPPORTED_TTS_MODELS)) {
ttsModel(ai, name, client);
}
for (const name of Object.keys(SUPPORTED_EMBEDDING_MODELS)) {
openaiEmbedder(ai, name, client);
}
}));
var src_default = azureOpenAI;
export {
azureOpenAI,
dallE3,
src_default as default,
gpt35Turbo,
gpt4,
gpt45,
gpt4o,
gptO1,
gptO1Mini,
gptO1Preview,
gptO3Mini,
textEmbedding3Large,
textEmbedding3Small,
textEmbeddingAda002,
tts1,
tts1Hd,
whisper1
};
//# sourceMappingURL=index.mjs.map