/** * Chat Completions API adapter for the OpenAI model provider. * * @internal */ import OpenAI from 'openai'; import type { Message } from '../../types/messages.js'; import type { ModelStreamEvent } from '../streaming.js'; import type { StreamOptions } from '../model.js'; import type { ChatStreamState, OpenAIChatConfig } from './types.js'; export declare const DEFAULT_CHAT_MODEL_ID: "gpt-5.4"; /** * Logs a warning for each chat-managed key present in `params`. * * @internal */ export declare function warnManagedParams(params: Record | undefined): void; /** * Builds a Chat Completions streaming request body. * * @internal */ export declare function formatChatRequest(config: OpenAIChatConfig, messages: Message[], options?: StreamOptions): OpenAI.Chat.Completions.ChatCompletionCreateParamsStreaming; /** * Maps a Chat Completions streaming chunk to one or more SDK events. Mutates * `state` and `activeToolCalls` as a side effect. * * @internal */ export declare function mapChatChunkToEvents(chunk: { choices: unknown[]; }, state: ChatStreamState, activeToolCalls: Map): ModelStreamEvent[]; //# sourceMappingURL=chat-adapter.d.ts.map