"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OPENAI_MODEL_CATALOG = exports.OpenAiTextPricing = exports.OpenAiSearchModels = exports.OpenAiDeprecatedAudioModels = exports.OpenAiAudioModels = exports.OpenAiRealtimeModels = exports.OpenAiTranscriptionModels = exports.OpenAiTTSModels = exports.OpenAiVideoModels = exports.OpenAiDeprecatedImageModels = exports.OpenAiImageModels = exports.OpenAiLimitedAvailabilityModels = exports.OpenAiResponsesOnlyModels = exports.OpenAiEmbeddingModelsList = exports.OpenAiChatModels = exports.OpenAiReasoningModels = exports.OpenAiEmbeddingModels = exports.OpenAiModels = void 0;
const types_1 = require("./types");
exports.OpenAiModels = {
    GPT_55: "gpt-5.5",
    GPT_55_Pro: "gpt-5.5-pro",
    GPT_54: "gpt-5.4",
    GPT_54_Mini: "gpt-5.4-mini",
    GPT_54_Nano: "gpt-5.4-nano",
    GPT_54_Pro: "gpt-5.4-pro",
    GPT_53_Chat: "gpt-5.3-chat-latest",
    GPT_53_Codex: "gpt-5.3-codex",
    GPT_53_Codex_Spark: "gpt-5.3-codex-spark",
    GPT_52: "gpt-5.2",
    GPT_52_Chat: "gpt-5.2-chat-latest",
    GPT_52_Codex: "gpt-5.2-codex",
    GPT_52_Pro: "gpt-5.2-pro",
    GPT_51: "gpt-5.1",
    GPT_51_Chat: "gpt-5.1-chat-latest",
    GPT_51_Codex: "gpt-5.1-codex",
    GPT_51_Codex_Max: "gpt-5.1-codex-max",
    GPT_51_Codex_Mini: "gpt-5.1-codex-mini",
    GPT_5: "gpt-5",
    GPT_5_Pro: "gpt-5-pro",
    GPT_5_Chat: "gpt-5-chat-latest",
    GPT_5_Codex: "gpt-5-codex",
    GPT_5_Mini: "gpt-5-mini",
    GPT_5_Nano: "gpt-5-nano",
    GPT_41: "gpt-4.1-2025-04-14",
    GPT_41_Mini: "gpt-4.1-mini-2025-04-14",
    GPT_41_Nano: "gpt-4.1-nano-2025-04-14",
    GPT_45: "gpt-4.5-preview-2025-02-27",
    GPT_4o: "gpt-4o-2024-08-06",
    GPT_4o_Audio: "gpt-4o-audio-preview-2024-12-17",
    GPT_4o_Realtime: "gpt-4o-realtime-preview-2024-12-17",
    GPT_4o_Mini: "gpt-4o-mini-2024-07-18",
    GPT_4o_Mini_Audio: "gpt-4o-mini-audio-preview-2024-12-17",
    GPT_4o_Mini_Realtime: "gpt-4o-mini-realtime-preview-2024-12-17",
    o1: "o1-2024-12-17",
    o1_Pro: "o1-pro-2025-03-19",
    o3: "o3-2025-04-16",
    o3_Pro: "o3-pro-2025-01-31",
    o4_Mini: "o4-mini-2025-04-16",
    o3_Mini: "o3-mini-2025-01-31",
    o1_Mini: "o1-mini-2024-09-12",
    o1_Preview: "o1-preview",
    o3_Deep_Research: "o3-deep-research",
    o4_Mini_Deep_Research: "o4-mini-deep-research",
    GPT_4o_Mini_Search: "gpt-4o-mini-search-preview-2025-03-11",
    GPT_4o_Search: "gpt-4o-search-preview-2025-03-11",
    GPT_4o_Transcribe: "gpt-4o-transcribe",
    GPT_4o_Mini_Transcribe: "gpt-4o-mini-transcribe",
    GPT_Realtime_15: "gpt-realtime-1.5",
    GPT_Realtime_Mini: "gpt-realtime-mini",
    GPT_Image_2: "gpt-image-2",
    GPT_Image_15: "gpt-image-1.5",
    GPT_Image_1: "gpt-image-1",
    GPT_Image_1_Mini: "gpt-image-1-mini",
    ChatGPT_Image: "chatgpt-image-latest",
    TTS_1: "tts-1",
    Whisper_1: "whisper-1",
    DALL_E_3: "dall-e-3",
    DALL_E_2: "dall-e-2",
    Sora: "sora",
    Sora_2: "sora-2",
    Sora_2_Pro: "sora-2-pro",
    GPT_4o_2024_05_13: "gpt-4o-2024-05-13",
    GPT_4o_2024_11_20: "gpt-4o-2024-11-20",
    GPT_35_Turbo: "gpt-3.5-turbo",
    GPT_4: "gpt-4",
    GPT_4_Turbo: "gpt-4-turbo",
};
exports.OpenAiEmbeddingModels = {
    EmbeddingAda2: "text-embedding-ada-002",
    EmbeddingLarge3: "text-embedding-3-large",
    EmbeddingSmall3: "text-embedding-3-small",
};
exports.OpenAiReasoningModels = [
    exports.OpenAiModels.GPT_5,
    exports.OpenAiModels.GPT_5_Pro,
    exports.OpenAiModels.GPT_5_Mini,
    exports.OpenAiModels.GPT_5_Nano,
    exports.OpenAiModels.GPT_51,
    exports.OpenAiModels.GPT_51,
    exports.OpenAiModels.GPT_52,
    exports.OpenAiModels.GPT_52_Pro,
    exports.OpenAiModels.GPT_53_Chat,
    exports.OpenAiModels.GPT_53_Codex,
    exports.OpenAiModels.GPT_54,
    exports.OpenAiModels.GPT_54_Mini,
    exports.OpenAiModels.GPT_54_Nano,
    exports.OpenAiModels.GPT_54_Pro,
    exports.OpenAiModels.GPT_55,
    exports.OpenAiModels.GPT_55_Pro,
    exports.OpenAiModels.GPT_5_Mini,
    exports.OpenAiModels.GPT_5_Nano,
    exports.OpenAiModels.GPT_5_Pro,
    exports.OpenAiModels.o3,
    exports.OpenAiModels.o3_Mini,
    exports.OpenAiModels.o4_Mini,
];
exports.OpenAiChatModels = [
    exports.OpenAiModels.GPT_4o,
    exports.OpenAiModels.GPT_4o_Mini,
    exports.OpenAiModels.GPT_4o_2024_11_20,
    exports.OpenAiModels.GPT_41,
    exports.OpenAiModels.GPT_41_Mini,
    exports.OpenAiModels.GPT_41_Nano,
    exports.OpenAiModels.GPT_54,
    exports.OpenAiModels.GPT_54_Mini,
    exports.OpenAiModels.GPT_55,
    exports.OpenAiModels.GPT_54_Nano,
    exports.OpenAiModels.GPT_54_Pro,
    exports.OpenAiModels.GPT_53_Chat,
    exports.OpenAiModels.GPT_53_Codex,
    exports.OpenAiModels.GPT_51,
    exports.OpenAiModels.GPT_52,
    exports.OpenAiModels.o3,
    exports.OpenAiModels.o3_Mini,
    exports.OpenAiModels.o4_Mini,
];
exports.OpenAiEmbeddingModelsList = [
    exports.OpenAiEmbeddingModels.EmbeddingAda2,
    exports.OpenAiEmbeddingModels.EmbeddingLarge3,
    exports.OpenAiEmbeddingModels.EmbeddingSmall3,
];
exports.OpenAiResponsesOnlyModels = [
    exports.OpenAiModels.GPT_5,
    exports.OpenAiModels.GPT_5_Mini,
    exports.OpenAiModels.GPT_5_Nano,
    exports.OpenAiModels.GPT_52_Pro,
    exports.OpenAiModels.GPT_53_Codex,
    exports.OpenAiModels.GPT_54,
    exports.OpenAiModels.GPT_54_Mini,
    exports.OpenAiModels.GPT_54_Nano,
    exports.OpenAiModels.GPT_54_Pro,
    exports.OpenAiModels.GPT_55_Pro,
    exports.OpenAiModels.GPT_55,
    exports.OpenAiModels.GPT_5_Pro,
    exports.OpenAiModels.o1,
    exports.OpenAiModels.o1_Pro,
];
exports.OpenAiLimitedAvailabilityModels = [
    exports.OpenAiModels.GPT_53_Codex_Spark,
    exports.OpenAiModels.o3_Pro,
];
exports.OpenAiImageModels = [
    exports.OpenAiModels.DALL_E_3,
    exports.OpenAiModels.DALL_E_2,
    exports.OpenAiModels.GPT_Image_2,
    exports.OpenAiModels.GPT_Image_15,
    exports.OpenAiModels.GPT_Image_1_Mini,
    exports.OpenAiModels.ChatGPT_Image,
];
exports.OpenAiDeprecatedImageModels = [exports.OpenAiModels.GPT_Image_1];
exports.OpenAiVideoModels = [
    exports.OpenAiModels.Sora,
    exports.OpenAiModels.Sora_2,
    exports.OpenAiModels.Sora_2_Pro,
];
exports.OpenAiTTSModels = [exports.OpenAiModels.TTS_1];
exports.OpenAiTranscriptionModels = [
    exports.OpenAiModels.Whisper_1,
    exports.OpenAiModels.GPT_4o_Transcribe,
    exports.OpenAiModels.GPT_4o_Mini_Transcribe,
];
exports.OpenAiRealtimeModels = [
    exports.OpenAiModels.GPT_Realtime_15,
    exports.OpenAiModels.GPT_Realtime_Mini,
];
exports.OpenAiAudioModels = [
    ...exports.OpenAiTTSModels,
    ...exports.OpenAiTranscriptionModels,
    ...exports.OpenAiRealtimeModels,
];
exports.OpenAiDeprecatedAudioModels = [
    exports.OpenAiModels.GPT_4o_Audio,
    exports.OpenAiModels.GPT_4o_Mini_Audio,
    exports.OpenAiModels.GPT_4o_Realtime,
    exports.OpenAiModels.GPT_4o_Mini_Realtime,
];
exports.OpenAiSearchModels = [
    exports.OpenAiModels.GPT_4o_Mini_Search,
    exports.OpenAiModels.GPT_4o_Search,
];
exports.OpenAiTextPricing = {
    [exports.OpenAiModels.GPT_55]: { input: 5.0, cached_input: 0.5, output: 30.0 },
    [exports.OpenAiModels.GPT_55_Pro]: { input: 30.0, cached_input: 0, output: 180.0, reasoningLevels: ["medium", "high", "xhigh"] },
    [exports.OpenAiModels.GPT_54]: { input: 2.5, cached_input: 0.25, output: 15.0 },
    [exports.OpenAiModels.GPT_54_Mini]: { input: 0.75, cached_input: 0.075, output: 4.5 },
    [exports.OpenAiModels.GPT_54_Nano]: { input: 0.2, cached_input: 0.02, output: 1.25 },
    [exports.OpenAiModels.GPT_54_Pro]: { input: 30.0, cached_input: 0, output: 180.0 },
    [exports.OpenAiModels.GPT_53_Chat]: {
        input: 1.75,
        cached_input: 0.175,
        output: 14.0,
    },
    [exports.OpenAiModels.GPT_53_Codex]: {
        input: 1.75,
        cached_input: 0.175,
        output: 14.0,
    },
    [exports.OpenAiModels.GPT_53_Codex_Spark]: {
        input: 1.75,
        cached_input: 0.175,
        output: 14.0,
        limitedAvailability: true,
    },
    [exports.OpenAiModels.GPT_52]: { input: 1.75, cached_input: 0.175, output: 14.0 },
    [exports.OpenAiModels.GPT_52_Chat]: { input: 1.75, cached_input: 0.175, output: 14.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_52_Codex]: { input: 1.75, cached_input: 0.175, output: 14.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_52_Pro]: { input: 21.0, cached_input: 0, output: 168.0, reasoningLevels: ["medium", "high", "xhigh"] },
    [exports.OpenAiModels.GPT_51]: { input: 1.25, cached_input: 0.125, output: 10.0 },
    [exports.OpenAiModels.GPT_51_Chat]: { input: 1.25, cached_input: 0.125, output: 10.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_51_Codex]: { input: 1.25, cached_input: 0.125, output: 10.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_51_Codex_Max]: { input: 1.25, cached_input: 0.125, output: 10.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_51_Codex_Mini]: { input: 0.25, cached_input: 0.025, output: 2.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_5]: { input: 1.25, cached_input: 0.125, output: 10.0 },
    [exports.OpenAiModels.GPT_5_Pro]: { input: 15.0, cached_input: 0, output: 120.0, reasoningLevels: ["high"] },
    [exports.OpenAiModels.GPT_5_Chat]: { input: 1.25, cached_input: 0.125, output: 10.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_5_Codex]: { input: 1.25, cached_input: 0.125, output: 10.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_5_Mini]: { input: 0.25, cached_input: 0.025, output: 2.0 },
    [exports.OpenAiModels.GPT_5_Nano]: { input: 0.05, cached_input: 0.005, output: 0.4 },
    [exports.OpenAiModels.GPT_41]: { input: 2.0, cached_input: 0.5, output: 8.0 },
    [exports.OpenAiModels.GPT_41_Mini]: { input: 0.4, cached_input: 0.1, output: 1.6 },
    [exports.OpenAiModels.GPT_41_Nano]: { input: 0.1, cached_input: 0.025, output: 0.4, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiModels.GPT_45]: { input: 75.0, cached_input: 37.5, output: 150.0, deprecated: true, deprecationDate: "2025-07-14", replacedBy: exports.OpenAiModels.GPT_41 },
    [exports.OpenAiModels.GPT_4o]: { input: 2.5, cached_input: 1.25, output: 10.0 },
    [exports.OpenAiModels.GPT_4o_Audio]: { input: 2.5, cached_input: 0, output: 10.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_4o_Realtime]: { input: 5.0, cached_input: 2.5, output: 20.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_4o_Mini]: { input: 0.15, cached_input: 0.075, output: 0.6 },
    [exports.OpenAiModels.GPT_4o_Mini_Audio]: { input: 0.15, cached_input: 0, output: 0.6, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_4o_Mini_Realtime]: { input: 0.6, cached_input: 0.3, output: 2.4, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.o1]: { input: 15.0, cached_input: 7.5, output: 60.0, deprecated: true, deprecationDate: "2026-10-23", replacedBy: exports.OpenAiModels.o3 },
    [exports.OpenAiModels.o1_Pro]: { input: 150.0, cached_input: 0, output: 600.0, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiModels.o3]: { input: 2.0, cached_input: 0.5, output: 8.0 },
    [exports.OpenAiModels.o3_Pro]: { input: 20.0, cached_input: 0, output: 80.0, limitedAvailability: true },
    [exports.OpenAiModels.o4_Mini]: { input: 1.1, cached_input: 0.275, output: 4.4 },
    [exports.OpenAiModels.o3_Mini]: { input: 1.1, cached_input: 0.55, output: 4.4, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiModels.o1_Mini]: { input: 1.1, cached_input: 0.55, output: 4.4, deprecated: true, deprecationDate: "2025-10-27", replacedBy: exports.OpenAiModels.o4_Mini },
    [exports.OpenAiModels.o1_Preview]: { input: 15.0, cached_input: 7.5, output: 60.0, deprecated: true, deprecationDate: "2025-07-28", replacedBy: exports.OpenAiModels.o3 },
    [exports.OpenAiModels.o3_Deep_Research]: { input: 10.0, cached_input: 2.5, output: 40.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.o4_Mini_Deep_Research]: { input: 2.0, cached_input: 0.5, output: 8.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_4o_Mini_Search]: { input: 0.15, cached_input: 0, output: 0.6, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_4o_Search]: { input: 2.5, cached_input: 0, output: 10.0, deprecated: true, deprecationDate: "2026-07-23" },
    [exports.OpenAiModels.GPT_4o_Transcribe]: {
        input: 2.5,
        cached_input: 0,
        output: 10.0,
    },
    [exports.OpenAiModels.GPT_4o_Mini_Transcribe]: {
        input: 1.25,
        cached_input: 0,
        output: 5.0,
    },
    [exports.OpenAiModels.GPT_Realtime_15]: {
        input: 4.0,
        cached_input: 0.4,
        output: 16.0,
    },
    [exports.OpenAiModels.GPT_Realtime_Mini]: {
        input: 0.6,
        cached_input: 0.06,
        output: 2.4,
    },
    [exports.OpenAiModels.GPT_Image_2]: { input: 8.0, cached_input: 2.0, output: 30.0 },
    [exports.OpenAiModels.GPT_Image_15]: { input: 5.0, cached_input: 1.25, output: 10.0 },
    [exports.OpenAiModels.GPT_Image_1]: { input: 5.0, cached_input: 1.25, output: 40.0, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiModels.GPT_Image_1_Mini]: { input: 2.0, cached_input: 0.2, output: 0 },
    [exports.OpenAiModels.ChatGPT_Image]: {
        input: 5.0,
        cached_input: 1.25,
        output: 40.0,
    },
    [exports.OpenAiModels.GPT_4o_2024_05_13]: { input: 5.0, cached_input: 0, output: 15.0, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiModels.GPT_4o_2024_11_20]: {
        input: 2.5,
        cached_input: 1.25,
        output: 10.0,
    },
    [exports.OpenAiModels.GPT_35_Turbo]: { input: 0.5, cached_input: 0, output: 1.5, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiModels.GPT_4]: { input: 30.0, cached_input: 0, output: 60.0, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiModels.GPT_4_Turbo]: { input: 10.0, cached_input: 0, output: 30.0, deprecated: true, deprecationDate: "2026-10-23" },
    [exports.OpenAiEmbeddingModels.EmbeddingAda2]: { input: 0.1, output: 0 },
    [exports.OpenAiEmbeddingModels.EmbeddingLarge3]: { input: 0.13, output: 0 },
    [exports.OpenAiEmbeddingModels.EmbeddingSmall3]: { input: 0.02, output: 0 },
    [exports.OpenAiModels.TTS_1]: { input: 15.0, output: 0 },
    [exports.OpenAiModels.Whisper_1]: { input: 0.006, output: 0 },
    [exports.OpenAiModels.DALL_E_3]: { image_generation: 0.04 },
    [exports.OpenAiModels.DALL_E_2]: { image_generation: 0.02 },
    [exports.OpenAiModels.Sora]: { video_generation: 0.012 },
    [exports.OpenAiModels.Sora_2]: { video_generation: 0.015 },
    [exports.OpenAiModels.Sora_2_Pro]: { video_generation: 0.025 },
};
const OpenAiAllCompletionModels = [
    ...exports.OpenAiChatModels,
    ...exports.OpenAiResponsesOnlyModels,
    ...exports.OpenAiLimitedAvailabilityModels,
    exports.OpenAiModels.GPT_5_Chat, exports.OpenAiModels.GPT_5_Codex,
    exports.OpenAiModels.GPT_51_Chat, exports.OpenAiModels.GPT_51_Codex,
    exports.OpenAiModels.GPT_51_Codex_Max, exports.OpenAiModels.GPT_51_Codex_Mini,
    exports.OpenAiModels.GPT_52_Chat, exports.OpenAiModels.GPT_52_Codex,
    exports.OpenAiModels.o3_Deep_Research, exports.OpenAiModels.o4_Mini_Deep_Research,
    exports.OpenAiModels.o3_Mini, exports.OpenAiModels.o4_Mini,
    exports.OpenAiModels.o1, exports.OpenAiModels.o1_Pro,
    exports.OpenAiModels.o1_Mini, exports.OpenAiModels.o1_Preview,
    exports.OpenAiModels.GPT_41_Nano,
    exports.OpenAiModels.GPT_4o_2024_05_13,
    exports.OpenAiModels.GPT_45,
    exports.OpenAiModels.GPT_35_Turbo, exports.OpenAiModels.GPT_4, exports.OpenAiModels.GPT_4_Turbo,
];
const OpenAiAllImageModels = [
    ...exports.OpenAiImageModels,
    ...exports.OpenAiDeprecatedImageModels,
];
const OpenAiAllAudioModels = [
    ...exports.OpenAiAudioModels,
    ...exports.OpenAiDeprecatedAudioModels,
];
exports.OPENAI_MODEL_CATALOG = [
    ...(0, types_1.completions)(OpenAiAllCompletionModels, "openai", exports.OpenAiTextPricing),
    ...(0, types_1.embeddings)(exports.OpenAiEmbeddingModelsList, "openai", exports.OpenAiTextPricing),
    ...(0, types_1.images)(OpenAiAllImageModels, "openai", exports.OpenAiTextPricing),
    ...(0, types_1.videos)(exports.OpenAiVideoModels, "openai", exports.OpenAiTextPricing),
    ...(0, types_1.audios)(OpenAiAllAudioModels, "openai", exports.OpenAiTextPricing),
    ...(0, types_1.transactions)(exports.OpenAiSearchModels, "openai", exports.OpenAiTextPricing),
];
//# sourceMappingURL=openai.js.map