/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */

var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var openai_exports = {};
__export(openai_exports, {
  openaiCompletionsProviderOptions: () => openaiCompletionsProviderOptions,
  openaiResponsesProviderOptions: () => openaiResponsesProviderOptions
});
module.exports = __toCommonJS(openai_exports);
var import_ai_manager = require("../../manager/ai-manager");
var import_completions = require("./completions");
var import_embedding = require("./embedding");
var import_responses = require("./responses");
const commonProperties = {
  supportedModel: [import_ai_manager.SupportedModel.LLM, import_ai_manager.SupportedModel.EMBEDDING],
  models: {
    [import_ai_manager.SupportedModel.LLM]: [
      "gpt-5",
      "gpt-4.1",
      "gpt-4o",
      "chatgpt-4o",
      "o4-mini",
      "o3",
      "o3-pro",
      "o3-mini",
      "o1",
      "o1-pro",
      "o1-mini",
      "o3-deep-research",
      "o4-mini-deep-research",
      "gpt-4-turbo",
      "gpt-4",
      "gpt-3.5-turbo",
      "gpt-4o-search-preview",
      "gpt-4o-mini-search-preview"
    ],
    [import_ai_manager.SupportedModel.EMBEDDING]: ["text-embedding-3-small", "text-embedding-3-large", "text-embedding-ada-002"]
  }
};
const openaiResponsesProviderOptions = {
  ...commonProperties,
  embedding: import_embedding.OpenAiEmbeddingProvider,
  title: "OpenAI",
  provider: import_responses.OpenAIResponsesProvider,
  supportWebSearch: true
};
const openaiCompletionsProviderOptions = {
  ...commonProperties,
  embedding: import_embedding.OpenAiEmbeddingProvider,
  title: "OpenAI (completions)",
  provider: import_completions.OpenAICompletionsProvider
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  openaiCompletionsProviderOptions,
  openaiResponsesProviderOptions
});
