/** * @verevoir/llm/deepseek — DeepSeek SDK adapter. * * DeepSeek exposes an OpenAI-compatible API, so this adapter reuses the * official `openai` package (the same peer dependency as `/openai`) * pointed at DeepSeek's `baseURL`. It mirrors the `/openai` adapter's * structure but calls the **Chat Completions** API (`chat.completions * .create`) rather than the Responses API — DeepSeek implements the * former, not the latter. Importing this subpath requires `openai` as a * peer dependency on the consumer. * * v0.6.0 ships `chat()` only — single-shot text generation, matching the * staged rollout of `/openai` + `/google`. Tool calling follows later. */ 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 = "deepseek"; /** DeepSeek's OpenAI-compatible endpoint. */ export declare const BASE_URL = "https://api.deepseek.com"; /** * Concrete model id per {@link ModelClass}. Reasoning maps to * `deepseek-reasoner` (the R1-style reasoning model); extraction maps to * `deepseek-chat` (the general V3 model) for fast/cheap structured tasks. * * As of 2026-05-26 these are the current GA aliases; upgrades happen here * only, no ripple through callers. */ export declare const models: Readonly>; /** * Per-model pricing (USD per million tokens) — DeepSeek-published * standard (cache-miss) rates as of 2026-05-26. * * **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 DeepSeek 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 DeepSeek Chat Completions API. * Same surface as the Anthropic + Google + OpenAI 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 `/openai` + `/google` — chat() first, tools follow. */ export declare function chat(options: ChatOptions): Promise; //# sourceMappingURL=index.d.ts.map