"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenaiV2Plugin = void 0;
const index_js_1 = require("../../types/index.js");
const constants_js_1 = require("./constants.js");
const index_js_2 = require("./shared/index.js");
exports.OpenaiV2Plugin = (0, index_js_2.getNativeOpenApiPlugin)({
    name: 'OpenAI',
    id: index_js_1.ExtendedIntegrationPluginId.OPENAI_V2,
    docsURL: `${constants_js_1.DOCS_BASE_URL}/openai`,
    openApiSpecURL: `${constants_js_1.PUBLIC_INTEGRATIONS_CDN_URL}/openapi/openai.yaml`,
    logoURL: `${constants_js_1.PUBLIC_INTEGRATIONS_LOGO_URL}/openai_logo.png`,
    authMethods: {
        apiKeyForm: [
            { label: 'API key', header: 'Authorization', key: 'api-key', required: true, valuePrefix: 'Bearer ' },
            { label: 'Organization ID', header: 'OpenAI-Organization', key: 'organization-id', required: false },
            { label: 'Project ID', header: 'OpenAI-Project', key: 'project-id', required: false }
        ]
    },
    isStreamable: true,
    serverURL: 'https://api.openai.com/v1'
});
//# sourceMappingURL=openai_v2.js.map