/** * @verevoir/llm/openai — OpenAI SDK adapter. * * Wraps the official `openai` package via the Responses API (the * post-Chat-Completions canonical surface). Importing this subpath * requires `openai` as a peer dependency on the consumer. * * v0.5.0 ships `chat()` only — single-shot text generation. The * materialiser-style paths (review-repo, doc-piece, conversation-doc) * use just this. `chatWithTools()` and `chatWithToolLoop()` follow in * a subsequent release. */ import { type ChatOptions, type ChatReply, type ModelClass, type RatesTable } from '../index.js'; /** Provider id reported on every {@link TokenUsage} this adapter returns. */ export declare const PROVIDER = "openai"; /** * Concrete model id per {@link ModelClass}. Reasoning maps to the * current GPT-5 tier; extraction maps to GPT-5 Mini for fast/cheap * structured tasks. * * As of 2026-05-20 these are the GA identifiers in the gpt-5 family; * upgrades happen here only, no ripple through callers. */ export declare const models: Readonly>; /** * Per-model pricing (USD per million tokens) — OpenAI-published rates * as of 2026-05-20. * * **Worst-case approach:** same convention as the other adapters — * cached input is billed cheaper than standard but the rate-tuple * here is the standard input rate, so pricing via this table is an * upper bound. Refresh this table when OpenAI publishes new * pricing. * * Each rate-tuple is `[input_per_million_USD, output_per_million_USD]`. * * @deprecated Part of the old static-rates cost API. Use * `createPriceBook(...)` / `book.costOf(...)` instead (see `src/pricing.ts`) * — it prices from LiteLLM's live table (the bundled snapshot as fallback) * and reports an unmatched model as `unpriced` rather than `0`. */ export declare const rates: RatesTable; /** * Single-shot text generation via the OpenAI Responses API. Same * surface as the Anthropic + Google adapters' `chat()`: pass turns * + systemPrompt, get `{ content, usage, stopReason }` back. Retry * on transient errors with caller-visible narration via `onRetry`. * * Not yet supported in this adapter (planned follow-up): live progress * narration via `onProgress`, tool calling. Aligns with the staged * rollout of `/google` — chat() first, tools follow. */ export declare function chat(options: ChatOptions): Promise; //# sourceMappingURL=index.d.ts.map