import * as plugins from './plugins.js'; export { classifyOpenAiLimit, readOpenAiError, type IOpenAiErrorDetails } from './smartai.limits.openai.js'; export { classifyOpenAiChatGptLimit } from './smartai.chatgpt.limits.js'; export { createOpenAiChatGptInstructionsMiddleware, normalizeOpenAiChatGptResponsesRequest } from './smartai.chatgpt.middleware.js'; export { createOpenAiWebSearchTool, type IOpenAiWebSearchToolOptions } from './smartai.websearch.openai.js'; export { createOpenAiChatGptAccessHeaders, createOpenAiChatGptAccessModelConnection, createOpenAiChatGptResolvingModelConnection, OPENAI_CHATGPT_CODEX_BASE_URL, OPENAI_CHATGPT_DEFAULT_ORIGINATOR, OpenAiChatGptAuthError, type IOpenAiChatGptAccess, type IOpenAiChatGptAccessConnectionOptions, type IOpenAiChatGptAccessGrant, type IOpenAiChatGptAccessResolveRequest, type IOpenAiChatGptReadAccess, type IOpenAiChatGptResolvingConnectionOptions, type IOpenAiChatGptWorkspaceIdentity, type TOpenAiChatGptRequestOutcome, } from './smartai.chatgpt.openai.js'; export { listOpenAiChatGptModels, OPENAI_CHATGPT_CATALOG_CLIENT_VERSION, OpenAiChatGptModelListError, type IOpenAiChatGptModel, type IOpenAiChatGptModelListOptions, type IOpenAiChatGptModelReasoningEffort, type IOpenAiChatGptModelServiceTier, type TOpenAiChatGptInputModality, type TOpenAiChatGptModelListErrorCode, } from './smartai.chatgpt.catalog.js'; export { createOpenAiApiKeyConnection, createOpenAiApiKeyHeaders, isOpenAiApiRequestUrl, listOpenAiApiKeyModels, OPENAI_API_BASE_URL, OpenAiApiKeyAuthError, OpenAiApiModelListError, type IOpenAiApiKeyAccess, type IOpenAiApiKeyConnectionOptions, type IOpenAiApiKeyModel, type IOpenAiApiKeyModelListOptions, } from './smartai.apikey.openai.js'; export { getOpenAiApiModel, getOpenAiModelPrice, OPENAI_API_MODELS, OPENAI_MODEL_PRICES, readOpenAiResponsesUsage, type IOpenAiApiModel, } from './smartai.models.openai.js'; /** A Responses API `reasoning.effort`; which ones a model accepts is the model's (`OPENAI_API_MODELS`). */ export type TOpenAiReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max'; export type TOpenAiTextVerbosity = 'low' | 'medium' | 'high'; /** `responses` calls `/responses`; `chat` calls `/chat/completions`, the API most OpenAI-compatible servers implement. */ export type TOpenAiApi = 'responses' | 'chat'; /** Provider options of the Responses API (`api: 'responses'`, the default). */ export interface IOpenAiProviderOptions extends plugins.JSONObject, plugins.OpenAIResponsesProviderOptions { } /** * Provider options of the Chat Completions API (`api: 'chat'`). Responses-only options such as * `reasoningSummary`, `previousResponseId`, `include`, `instructions` or `truncation` do not apply * to it; the chat model ignores them. */ export interface IOpenAiChatProviderOptions extends plugins.JSONObject, plugins.OpenAIChatProviderOptions { } /** The provider owns inference; optional authentication components supply this connection. */ export interface IOpenAiModelConnection { settings: plugins.OpenAIProviderSettings; middleware?: plugins.LanguageModelV4Middleware; /** The OpenAI APIs this connection serves. Unset means every API; a model asking for another one is refused. */ apis?: readonly TOpenAiApi[]; /** Reads this connection's own limit dialect first; the OpenAI API dialect handles the rest. */ classifyLimit?: plugins.TModelLimitClassifier; } export interface IOpenAiModelOptions extends plugins.ISmartAiOptions { provider: 'openai'; connection?: IOpenAiModelConnection; /** The API the model calls. Defaults to `responses`. */ api?: TOpenAiApi; /** * With `api: 'chat'`: whether the server takes OpenAI's fields of response storage and the prompt * cache, `store`, `prompt_cache_key`, `prompt_cache_retention` and `prompt_cache_options`. OpenAI's * own API always gets them; another server gets them only with `true`, since an OpenAI-compatible * server may refuse a field it does not know. */ openAiFields?: boolean; } export declare const createOpenAiModelProvider: () => plugins.IModelProvider;