import { ExtendedIntegrationPluginId } from '../../types/index.js';
import { DOCS_BASE_URL, PUBLIC_INTEGRATIONS_CDN_URL, PUBLIC_INTEGRATIONS_LOGO_URL } from './constants.js';
import { getNativeOpenApiPlugin } from './shared/index.js';
export const OpenaiV2Plugin = getNativeOpenApiPlugin({
    name: 'OpenAI',
    id: ExtendedIntegrationPluginId.OPENAI_V2,
    docsURL: `${DOCS_BASE_URL}/openai`,
    openApiSpecURL: `${PUBLIC_INTEGRATIONS_CDN_URL}/openapi/openai.yaml`,
    logoURL: `${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