Skip to content

Changelog

LM Deluge iterates quickly. This page calls out the highlights from the most recent releases. For a blow-by-blow history you can always inspect git log, but the sections below should help you catch up quickly starting with v0.0.62.

  • New Azure AI Foundry models: Added gpt-6.2-sol-azure, gpt-6.2-astra-azure and gpt-6.1-terra-azure (priced the same as OpenAI direct), plus kimi-k3.1-pro-azure ($2.30 / $0.23 cached / $11.50 per million tokens), deepseek-v4.1-flash-1017-azure ($0.30 / $0.007 / $1.20) and mistral-large-4-azure (deployment mistral-large-4-latest; $0.70 / $0.07 / $2.10), at Azure’s global prices. All pass the live check in tests/one_off/test_azure_foundry_models.py.
  • Removed retired Azure entries: grok-4-fast-reasoning-azure, grok-4-fast-non-reasoning-azure and command-a-plus-azure (Azure retired Cohere Command A Plus 05-2026 in October).
  • Inkling 2 Mini via Tinker: Added inkling-2-mini (thinkingmachines/Inkling-2-Mini) on Tinker’s OpenAI-compatible API (TINKER_API_KEY), with the same capabilities as Inkling 2 Small: vision, tool calls, logprobs, reasoning efforts none through xhigh and numeric effort. Priced at Tinker’s sampling rates of $0.15 / $0.015 cached / $0.50 per million tokens. A live run passed for reasoning, images and a tool loop (tests/one_off/test_tinker_inkling_live.py), which now covers both Inkling 2 models by default.
  • Gemini transcription on Vertex: transcribe_async(..., model="gemini-3.5-transcribe-vertex") uses gemini-3.5-transcribe through Vertex generateContent with VERTEX_API_KEY, following VERTEX_LOCATION like the other Vertex models. timestamps=True turns on word timestamps; extra keyword arguments go into audioTranscriptionConfig (e.g. diarization=True, customVocabulary=[...]). With diarization, each segment is one speaker turn labeled spk:N. Any finishReason other than STOP (including a missing one) is returned as an error and not retried. Cost comes from the response’s token usage at the Gemini API list price ($2 per million input tokens, $12 per million output tokens) and is reported on the new TranscriptionResponse.cost field (summed across chunks).
  • Diarization implies timestamps: timestamps now defaults to None. It is on when diarization=True or diarize=True is passed (Vertex or Deepgram) and off otherwise. Passing diarization with timestamps=False raises ValueError. Without word timestamps, Vertex speaker turns had no segments and labels couldn’t be matched across chunks. Deepgram callers who pass diarize=True now also get segments.
  • Overlapping chunks for long audio: When timestamps=True and the model returns word timestamps, long audio is split into chunks that overlap by 60 seconds (capped at a quarter of the chunk). The models marked word_timestamps in REGISTRY are whisper-1, whisper-v3, whisper-v3-turbo, nova-3, nova-2 and gemini-3.5-transcribe-vertex. Previously chunks were cut back to back, which could garble or drop the word at each cut.
    • Cutting: each overlap’s words are aligned one-to-one in order, and both chunks are cut by word index at an aligned word near the midpoint. Repeated words (“no, no, no”) and small timestamp differences between chunks no longer duplicate or drop a word. If only one chunk has speech in an overlap, all of it is kept.
    • Speakers: diarization labels are matched across chunks through the aligned words, so a speaker keeps one label (spk:N) for the whole recording. A label is never matched by elimination alone when no word was aligned.
    • Segments: each word belongs to the segment it starts in, so stitched text contains every kept word. Rebuilt text keeps Deepgram’s punctuated_word.
    • Models without word timestamps (gpt-4o-transcribe, Voxtral) still split back to back.
    • Live test: on a 36-minute two-voice recording in 15-minute chunks, accuracy against the script was 0.93, slightly above a single unchunked request (0.90). No words were duplicated or dropped at the cuts, and each voice kept one label across all three chunks. The one exception was 114 words that Gemini itself gave a second label inside the first chunk.
  • Choosing the chunk size: transcribe_async(..., chunk_seconds=900) splits audio longer than chunk_seconds into chunks of that length. The default is still 80% of the model’s max_duration. It raises ValueError if chunk_seconds is not a positive finite number or exceeds max_duration. Gemini’s max_duration is 900 s, Google’s documented limit with timestamps or diarization. If the duration can’t be measured (no ffmpeg), the file returns an error instead of being sent unsplit.
  • Splitting fixes:
    • In-memory audio: (bytes, filename) and raw-bytes sources are now split like file paths when they exceed a model’s limits; they used to fail. They are staged under a short temp name, so a very long filename no longer aborts the batch.
    • Missing durations: when the container has no duration header (as with browser MediaRecorder WebM) or ffprobe is missing, duration is measured by decoding with ffmpeg.
    • Size limits: a file over a model’s size limit is re-encoded even when it fits in one chunk; it used to be sent whole. A chunk still over the limit returns a clear error.
    • Encoding: split chunks are 64 kbps MP3 with their channels kept (were VBR ~190 kbps).
  • Gemini 4 Neon: Added gemini-4-neon (Gemini API) and gemini-4-neon-vertex at $3 input / $0.15 cached / $15 output per million tokens, flat across the 1M context window (implicit caching only; not on the Gemini free tier). Neon’s thinking levels work like Hydrogen’s: it takes low, medium, high and xhigh, defaults to high, maps none/minimal to low and max to xhigh. Temperature and top-p are not sent. On Vertex it answers on the us and eu endpoints but returns 404 on global, the same as the other Gemini 4 models. Live runs passed at every effort plus a tool loop on both surfaces (tests/one_off/test_gemini_4_neon_live.py).
  • GPT-6.2 Sol and GPT-6.2 Astra: Added native OpenAI gpt-6.2-sol (alias gpt-6.2) at $2 input / $0.10 cached / $2.50 cache write / $10 output per million tokens, and gpt-6.2-astra at $8 / $0.40 / $10 / $40. Both support vision, JSON, verbosity and reasoning efforts low through max; OpenAI rejects none on both, so lm-deluge doesn’t send it. Chat Completions rejects function tools whenever reasoning is on, so tools on Chat Completions now fail fast with a ValueError; use use_responses_api=True. As with other GPT-6 models, max is sent as xhigh on Chat Completions. Live runs passed on Chat Completions and Responses at every effort plus a tool round-trip (tests/one_off/test_gpt_62_live.py).
  • Anthropic message threads (beta): run_agent_loop(..., message_thread=True) (or a MessageThread to keep one across calls) sends only the new messages each round after the first, which lowers time to first token in long loops. If the thread can’t be used, lm-deluge falls back to sending the full conversation. Only the first-party Anthropic API supports threads; Bedrock and other providers send full conversations and warn. Thread contents aren’t eligible for zero data retention. Pair with cache="automatic" to also cache each turn.
  • Normalized stop reasons and error kinds: APIResponse.stop_reason is one of end, tool_use, max_tokens, refusal, content_filter, pause or other on every provider (finish_reason still holds the provider’s raw value). Error responses get APIResponse.error_kind: rate_limit, overloaded, context_too_long, auth, invalid_request, content_filter, not_found, timeout, network, server or other. Unambiguous status codes decide the kind first, so a 429 that mentions tokens is still a rate limit. Both fields survive the local cache, and StopReason and ErrorKind are exported from lm_deluge.
  • Tool errors are flagged: ToolResult has an is_error flag, and tool failures (exceptions, unknown tools, bad arguments) set it. Anthropic gets is_error: true, Bedrock status: "error", Gemini an error response, and OpenAI and Mistral an Error: prefix. MCP tool results with isError are now reported as errors (they used to look like successes). Dict tool results no longer crash fingerprint.
  • Tool annotations: Tool(annotations=ToolAnnotations(read_only=True, ...)), also accepted by Tool.from_function, holds MCP-style hints (read_only, destructive, idempotent, open_world). They are filled in from MCP servers and never sent to providers. Read-only filesystem prefab tools are annotated.
  • Conversation logs: Conversation.container_id (Anthropic code execution and skills) is set by with_response, saved by to_log, and reused by start and run_agent_loop, which previously dropped it between calls. to_log now keeps Video parts (previously dropped silently) and provider-hosted files (file_id, previously an error). Breaking: URL images, files and videos are saved as URLs instead of being downloaded and embedded, so logging doesn’t make network requests; a log that references an expired URL can no longer be replayed. Part types to_log doesn’t know now raise TypeError instead of being dropped.
  • Gemini 4 Hydrogen: Added gemini-4-hydrogen (Gemini API) and gemini-4-hydrogen-vertex at $1.50 input / $0.075 cached / $7.50 output per million tokens, flat across the 1M context window (implicit caching only). Hydrogen is the first Gemini 4 model with the xhigh thinking level: it takes low, medium, high and xhigh, defaults to high, maps none/minimal to low and max to xhigh. Temperature and top-p are not sent. On Vertex it answers on the us and eu endpoints but returns 404 on global, the same as Argon and Carbon. Live runs passed at every effort plus a tool loop on both surfaces (tests/one_off/test_gemini_4_hydrogen_decision_live.py).
  • Gemini Decision 1: decide now supports Google’s Gemini Decisions API (POST /v1beta/decisions) as a new gemini wire format, with gemini-decision-1 at $0.10 per million input tokens (output is free). It uses GEMINI_API_KEY, sends input (text, a content block, or a list of content blocks, so images, audio, video and documents work) and keyed questions, and translates Noul(true=..., false=...) criteria to Gemini’s true_description / false_description. Inputs blocked by a safety filter come back as an error response with the billed cost and are not retried. Live runs passed on text and image input.
  • Claude Fable 5.2: Added native Anthropic claude-fable-5.2 (claude-fable-5-2) plus claude-fable-5.2-bedrock US and claude-fable-5.2-bedrock-global profiles at $8 input / $0.20 cache read / $10 cache write / $40 output per million tokens. It behaves like Fable 5.1: adaptive thinking is always on, efforts run low through max, forced tool choice is rejected, and thinking blocks are bound to the conversation prefix (thinking_prefix_mismatch="drop_block" to recover, max_turns_warning="ephemeral" is rejected). The Bedrock profiles reuse the verified Fable 5.1 source regions. Live runs passed on all three, including thinking replay and a tool loop (tests/one_off/test_fable_52_gemini_4_carbon_live.py).
  • Gemini 4 Carbon: Added gemini-4-carbon (Gemini API) and gemini-4-carbon-vertex, priced like Argon at the launch rate of $2 input / $0.10 cached / $10 output per million tokens through 2026-11-30 (standard pricing after that is $4 / $0.20 / $20). Carbon takes the low, medium and high thinking levels and defaults to medium; none/minimal map to low and xhigh/max to high. Temperature and top-p are not sent. On Vertex it answers on the us and eu endpoints but returns 404 on global, the same as Argon.
  • Thinking Machines Inkling models via Tinker: Added inkling-2-small, inkling-small and inkling, served by Tinker’s OpenAI-compatible API (TINKER_API_KEY). They support vision, tool calls, logprobs and reasoning efforts none through xhigh (max maps to xhigh). Prices follow Tinker’s sampling rates: $0.30 / $0.03 cached / $1.00 for Inkling 2 Small, $0.58 / $0.116 / $1.44 for Inkling-Small and $1.87 / $0.374 / $4.68 for Inkling, per million tokens. Tinker accepts response_format but does not enforce it, so JSON mode and structured outputs are marked unsupported and lm-deluge warns instead of sending them. Live runs passed on all three for reasoning, images and a tool loop (tests/one_off/test_tinker_inkling_live.py).
  • Numeric reasoning effort: reasoning_effort now also accepts a float from 0.0 to 0.99, which Tinker uses for fine-grained effort (LLMClient("inkling-2-small", reasoning_effort=0.2)). Only Tinker models and tinker:// checkpoints accept it; any other model raises a ValueError when the client is created.
  • Tinker checkpoint fixes: Messages to tinker:// checkpoints are no longer collapsed into a single string. Tinker now accepts content-part lists, and the old flattening crashed on any conversation with tool calls. Checkpoints send reasoning_effort only when you set it and keep your temperature, because effort support depends on the checkpoint’s base model (Inkling takes named or numeric levels; Qwen3.5 rejects it). tests/core/test_tinker_support_live.py now takes the checkpoint from TINKER_CHECKPOINT.
  • Null reasoning_content ignored: OpenAI-compatible chat responses with "reasoning_content": null produced an empty Thinking part. They are now skipped.
  • Breaking: Python 3.11+ required: Support for Python 3.10 was dropped, and the minimum versions are now Pillow 13 and aiohttp 3.14.5, to pick up security fixes.
  • GPT-6.1 Terra: Added gpt-6.1-terra at $1.00 input / $0.05 cached / $5.00 output per million tokens, with vision, JSON, verbosity and reasoning efforts none through max. Prompts over 272K input tokens are billed at a higher rate by OpenAI; that surcharge is not reflected in response.cost. Live runs passed on chat and Responses at every effort plus a tool round-trip (tests/one_off/test_gpt_61_terra_live.py).
  • max effort on OpenAI chat completions: OpenAI accepts reasoning_effort="max" only on the Responses API, and chat completions rejected it with a 400 on every GPT-6 and GPT-5.6 model. Chat requests to api.openai.com now send xhigh instead and warn; the Responses API still sends max.
  • Cloudflare Clef decision models: Added clef-cf, clef-omni-cf and clef-flash-cf (@cf/cloudflare/clef*), Cloudflare’s decision models that score a state against typed questions instead of generating text. Pass the questions in extra_body["questions"] (noul yes/no, choice and score types, as in Cloudflare’s docs). The state is the conversation text, or extra_body["state"] for structured data. Images in the conversation are sent as embedded data URLs, and clef-omni takes audio via extra_body["audio"]. response.completion is the answers object as JSON and raw_response holds the full result. Input is billed at $0.24 / $0.15 / $0.038 per million tokens and output is free. Live runs passed on all three for text and image questions, plus audio on clef-omni (tests/one_off/test_cloudflare_clef_live.py).
  • DeepSeek V4.1 Flash on Cloudflare: Added deepseek-v4.1-flash-1017-cf (@cf/deepseek-ai/deepseek-v4.1-flash-1017) with vision, JSON mode and reasoning, priced at $0.30 input / $0.006 cached / $1.20 output per million tokens.
  • Cloudflare reasoning effort: reasoning_effort is now sent to Cloudflare chat models when you set it (it was always dropped before); if you leave it unset, each model keeps its own default. Levels are mapped to what each model accepts: Kimi K2.5/K2.6, GLM-5.x and DeepSeek take none through max; Kimi K2.7-code takes up to max but not none; GLM-4.7-flash, gpt-oss-120b and Nemotron take low/medium/high; Qwen3.8-27b’s top level is xhigh, so high and max map to it. nemotron-3-120b-cf is now marked as a reasoning model. Live runs passed on every Cloudflare reasoning model at every level (tests/one_off/test_cloudflare_reasoning_effort_live.py).
  • Gemini 4 Argon: Added gemini-4-argon (Gemini API) and gemini-4-argon-vertex, priced at the launch rate of $2 input / $0.10 cached / $10 output per million tokens through 2026-11-30 (standard pricing after that is $4 / $0.20 / $20). Argon takes the low, medium and high thinking levels and defaults to medium; none/minimal map to low and xhigh/max to high. Temperature and top_p are never sent. Thought-signature injection and media_resolution apply to Gemini 4 as they do to Gemini 3. On Vertex, Argon answers on the us and eu endpoints but returns 404 on global (the default), so set VERTEX_LOCATION=us or eu. Live runs passed on the Gemini API and Vertex us/eu, including streamed and non-streamed tool loops (tests/one_off/test_gemini_4_argon_live.py, tests/models/test_gemini_4_argon.py).
  • Gemini thinking tokens are billed: Gemini reports thinking separately from output (thoughtsTokenCount) and bills it at the output rate, but output_tokens and cost left it out, so every Gemini reasoning response was undercharged. output_tokens now includes thinking tokens, matching OpenAI and Anthropic, and reasoning_tokens still reports them on their own (tests/core/test_gemini_usage_cost.py).
  • Breaking: Gemini -compat models removed: The OpenAI-compatible Gemini entries (gemini-2.5-*-compat, gemini-3.1-flash-lite-compat, gemini-3.5-flash*-compat, gemini-3.6/3.7/3.8-flash-compat) are gone. Native Gemini support covers the same models and works better; the compat path could not replay thought signatures, so tool loops on Gemini 3+ failed with a 400 on the second round. Use the same name without -compat, or -vertex.
  • New first-party xAI Grok models: Added grok-4.7, grok-4.6, grok-4.5, grok-4.3, grok-4.20-reasoning, grok-4.20-non-reasoning and grok-build-0.1 on api.x.ai (GROK_API_KEY). Grok 4.3–4.7 send reasoning_effort and support xhigh; only grok-4.3 accepts none. Grok 4.20 and Build 0.1 reject reasoning_effort, so it is never sent. Prices use xAI’s under-200k-token tier. Live runs passed on all seven via Chat Completions and Responses (tests/one_off/test_grok_4_x_live.py, tests/models/test_grok_4_x.py).
  • Responses requests omit background unless enabled: The Responses request builder always sent "background": false, which xAI rejects with a 400. The field is now sent only when background=True; OpenAI behavior is unchanged.
  • Responses settings are no longer parsed as reasoning: The top-level reasoning object in an OpenAI Responses reply echoes the request settings (e.g. {"effort": "high", "summary": "detailed"}), but the parser turned its summary value into a Thinking part whenever a round had no reasoning item. Streamed Luna tool rounds on Bedrock hit this, so apps showed “detailed” as the model’s reasoning. Reasoning now comes only from reasoning output items, and APIResponse.thinking carries their summary text (tests/core/test_responses_reasoning_settings.py).
  • Streaming inside agent loops: run_agent_loop(..., on_text_delta=callback) streams each round and calls callback with TextDeltaEvent(kind, round, model, text) as visible answer text arrives (thinking is not emitted). Supported for Anthropic (direct and Bedrock, including AWS event-stream decoding with CRC checks), OpenAI Chat Completions and Responses (OpenAI itself, including background=True with automatic stream resumption, and Bedrock’s OpenAI-compatible endpoint), and Gemini (native and Vertex); other providers, including OpenAI-compatible ones such as OpenRouter and Groq, make ordinary requests and emit no deltas. Each round still assembles the same final message as a non-streamed request (signed thinking, encrypted reasoning, tool calls, usage), so tool execution, history replay and fallbacks behave identically. Before a retry or fallback attempt the callback receives a "reset" event so partial text can be discarded; in-stream provider errors get the same retry classification as non-streamed ones. Streamed requests use request_timeout as a connection and read inactivity timeout with no total cap, so long but healthy generations are no longer killed and retried. Exceptions raised by the callback (e.g. a cancelled turn) propagate out of the loop instead of being retried. Live runs passed on Sonnet 5.5 Bedrock, Luna Bedrock (Chat and Responses) and gemini-3.8-flash-vertex, including a forced Opus → Luna → Gemini mid-loop switch (tests/one_off/test_agent_streaming_live.py, tests/one_off/test_provider_streaming_live.py, tests/core/test_agent_streaming.py, tests/core/test_provider_streaming.py).
  • Gemini thoughts stay thoughts: Gemini thought-summary parts are now parsed as thinking instead of text, so response.completion no longer includes them, and they are replayed to Gemini as thought: true parts with their signatures (previously as visible [Thinking: ...] text), per Google’s guidance to return model turns as received. Live runs passed on gemini-3.8-flash and gemini-3.8-flash-vertex (tests/one_off/test_gemini_thought_replay_live.py).
  • One-hour prompt cache: LLMClient(cache_ttl="1h") sets ttl: "1h" on every Anthropic cache breakpoint lm-deluge emits (message, tool and automatic), on the direct API and Bedrock (no beta flag needed). The default (None) keeps the provider’s 5-minute cache. Usage.cache_write_1h_tokens records one-hour writes, which are costed at 2x base input.
  • Gemini tool schemas use parametersJsonSchema: Gemini and Vertex tools are now sent as full JSON Schema instead of Google’s restricted OpenAPI parameters, so MCP discriminators (const), $refs, defaults and dictionary schemas are preserved. Previously Vertex rejected any tool whose schema used const with a 400, and integer enums were rejected too.
  • Gemini handles list tool results: Tool results that are lists of content blocks (the shape MCP tools return) no longer raise can't handle content blocks for gemini yet. Text blocks are joined into the function response, images are sent as functionResponse.parts, and unknown blocks fall back to JSON text.
  • Gemini tool-loop fixes: Tool-result messages are now sent with role user (they were sent as model), functionResponse.name is the called function’s name rather than the tool call ID, and empty text parts are dropped. Together with the list-result fix, a Claude or OpenAI agent loop can now fall back to Gemini mid-conversation with MCP tool history. Live runs passed on gemini-3.8-flash-vertex with real MCP tool schemas, including a reasoning Opus round followed by a Vertex round (tests/one_off/test_gemini_mcp_tools_live.py, tests/core/test_gemini_mcp_translation.py).
  • Ordered fallback chains: fallback_models is now an ordered chain. Each request tries its primary model, then each fallback in the order given. A different-model error (e.g. a Bedrock 503) advances one step and never bounces back to the primary until every fallback has been tried; after the last fallback the chain wraps to the primary and continues round-robin. Same-model errors (timeouts, throttles that rotate Bedrock regions) stay on the current model unless the remaining attempts are needed for untried fallbacks. Blocklisted models are skipped. The attempt budget is max(max_attempts, chain length), so every fallback gets at least one attempt, and provider errors that disable retries still move on to untried fallbacks. Chain position is tracked per request, so concurrent requests are independent. Retry logs name the model being switched to. Clients without fallback_models keep the existing random multi-model retry behavior.
  • Fallbacks inside agent loops: With fallback_models set, each run_agent_loop round starts at the primary again instead of sticking to the last model that answered, so a loop returns to the primary as soon as it recovers. Reasoning fallbacks with tools (e.g. gpt-6-luna-bedrock) use the Responses API when supported, even if the client was created with use_responses_api=False for a Claude primary. OpenAI reasoning payloads in history are no longer replayed to Anthropic models as thinking blocks. Live mid-loop switches passed Opus → Sonnet → Opus, Opus → Luna → Opus, and Opus → gemini-3.8-flash-vertex → Opus with signed thinking and tool calls, plus a full Opus → Sonnet → Luna → Gemini chain (tests/one_off/test_ordered_fallback_live.py, tests/one_off/test_fallback_history_probe.py, tests/core/test_ordered_fallback_chain.py).
  • Tests: Claude Sonnet 5 Bedrock pricing expectations updated to $2 / $10.
  • Claude Haiku 5.5: Added claude-5.5-haiku (claude-haiku-5-5) on the Anthropic API, plus claude-5.5-haiku-bedrock (us.anthropic.claude-haiku-5-5) and claude-5.5-haiku-bedrock-global (global.anthropic.claude-haiku-5-5) on Bedrock. Pricing is the ≤100k-token tier: $0.10 input / $0.01 cached / $0.125 cache write / $0.50 output (longer prompts cost 5x and aren’t modeled). Thinking is adaptive with effort (including xhigh/max); reasoning_effort="none" sends thinking: disabled, which is rejected at xhigh/max effort. thinking_budget is translated to effort, temperature/top_p are omitted, assistant prefill is rejected, and max_turns_warning="ephemeral" is rejected because thinking blocks are bound to the conversation prefix. Live runs passed on the direct API and on both Bedrock profiles across several source regions, including thinking replay, thinking off, and a tool loop (tests/one_off/test_haiku_55_live.py).
  • OpenAI Decisions (gpt-6-luna): lm_deluge.decide now supports OpenAI’s beta POST /v1/decisions endpoint as model gpt-6-luna (OPENAI_API_KEY, $0.10 per million input tokens, no output charge). Questions are still written with Noul/Choice/Score and translated to OpenAI’s format: a named questions list with predicate, choices (value/description) and levels (label/description). Answers come back as the same NoulAnswer/ChoiceAnswer/ScoreAnswer types, so code works unchanged across Jev and Luna. Text states are sent as input unchanged, a list of user messages passes through (use this for input_image data URLs), and other JSON is sent as a string. OpenAI predicates have no true/false criteria, so Noul(true=..., false=...) criteria are appended to the instructions. Predicate is an alias of Noul, and raw dicts may use "type": "predicate". register_decision_provider() takes a new format argument ("systemone" or "openai"). Passed a live check (tests/one_off/test_decide_live.py gpt-6-luna).
  • Credentials no longer follow provider redirects: Provider requests (completions, background polling and cancellation, streaming, batches, file uploads and deletes, embeddings, rerank, transcription, and decisions) no longer follow redirects, so an unexpected 3xx can’t forward API keys to another host; it now raises unexpected redirect from provider instead. Downloads that legitimately redirect to signed storage URLs (Anthropic, OpenAI, and Gemini batch results; Anthropic file downloads) still follow up to 5 hops, but drop every header, API keys included, once the redirect leaves the provider’s origin, and refuse HTTPS-to-HTTP downgrades. The Gemini API key is now sent in the x-goog-api-key header for generation and file upload/delete instead of a ?key= query parameter, so it no longer appears in URLs or logs (tests/core/test_provider_redirects.py).
  • Gemini on Vertex AI: New -vertex models send Gemini requests to Vertex AI under Google Cloud terms instead of the Gemini Developer API. Auth is a Google Cloud API key in VERTEX_API_KEY, sent in the x-goog-api-key header; Vertex derives the project from the key. VERTEX_LOCATION picks the endpoint: global (default), us/eu multi-region (aiplatform.{loc}.rep.googleapis.com), or a region such as us-central1. Request building and response parsing are shared with the native Gemini path. Files uploaded to the Gemini Files API are rejected, since Vertex can’t read them; inline files work. Variants: 2.5 Pro/Flash/Flash-Lite, 3 Flash preview, 3.1 Pro preview, 3.1 Flash-Lite, 3.5 Flash/Flash-Lite, and 3.6/3.7/3.8 Flash. Not every model is served everywhere: the us endpoint lacks the 2.5 models, gemini-3-flash-preview, and gemini-3.1-pro-preview. Live text, image, PDF, and JSON-mode checks passed on global and us (tests/one_off/test_vertex_live.py).
  • New Gemini models: Added gemini-3.1-pro-preview ($2 / $0.20 cached / $12 under 200k tokens) and gemini-3.5-flash-lite ($0.30 / $0.03 cached / $2.50), plus gemini-3.5-flash-lite-compat. 3.1 Pro now sends reasoning_effort="medium" as thinkingLevel: medium; it was previously raised to high.
  • Retired Gemini models removed: gemini-2.0-flash, gemini-2.0-flash-lite (and their -compat entries), and gemini-3-pro-preview now return 404 from Google and have been removed. Tests and docs now use gemini-2.5-flash-lite and gemini-3.1-pro-preview.
  • Gemini cached-input prices: Corrected to Google’s published rates: 2.5 Pro $0.125 (was $0.31), 2.5 Flash $0.03 (was $0.075), 2.5 Flash-Lite $0.01 (was $0.025), 3 Flash preview $0.05 (was an estimated $0.125).
  • Dependency security updates: The aws, docker, and sandbox extras now require urllib3>=2.8.0 (chunked-read memory, HTTPS-proxy TLS, and deflate-loop advisories), and the lockfile moves anyio to 4.14.2 (TLS host-name encoding advisory). The docs site pins devalue 5.9.3 and undici 8.10.2, and the Cloudflare sandbox worker pins undici 7.29.1.
  • Claude Sonnet 5.5 on Bedrock US: Added claude-5.5-sonnet-bedrock (us.anthropic.claude-sonnet-5-5), which AWS now offers alongside the Global profile, at the same $2 / $0.20 / $2.50 / $10 pricing. Live runs passed in all six US source regions (ca-central-1, ca-west-1, us-east-1, us-east-2, us-west-1, us-west-2), including thinking replay, between_tools, and a tool loop.
  • Azure AI Foundry models: Added -azure entries for GPT-6.1 Sol, GPT-6 Sol/Luna/Astra, GPT-5.6 Sol/Luna/Terra, gpt-chat-latest, Grok 4.6 and 4.3, DeepSeek V4 Pro and Flash, Kimi K2.6 and K2.7 Code, Cohere Command A+ (command-a-plus-azure), and MAI-Thinking-1. Each expects a deployment named after the model on your AZURE_URL resource. Prices are Azure’s global standard-context rates; Azure publishes no separate GPT-6.1 Sol or GPT-5.6 meters, so those use OpenAI’s direct prices, which match Azure for GPT-6. Azure’s DeepSeek V4 Flash is priced above DeepSeek’s own API. Cohere Command A+ on Azure currently returns raw <|START_TEXT|> markers around its output. Every model passed a live check (tests/one_off/test_azure_foundry_models.py).
  • Chat Completions tool guard covers Azure and aliases: The fail-fast check for function tools combined with reasoning on Chat Completions (GPT-6 Sol/Luna with reasoning enabled; GPT-5.4, 5.5, 5.6 and 6.1 with any reasoning) now matches on the deployed model name and applies to Azure entries too. This also covers the gpt-6 alias, which previously slipped past the check (tests/core/test_chat_tools_reasoning_guard.py).
  • Decision models (TypeSafe Jev): New lm_deluge.decide module for decision APIs, which return typed answers instead of text. Pass a state (text or JSON) and a map of questions built with Noul (yes/no probability), Choice (one of up to 255 unordered options), or Score (2–10 ordered levels, returned as a probability-weighted fractional score), or as raw API dicts. Questions are validated before sending. decide() handles one state; decide_parallel_async() and decide_sync() handle many, with shared or per-state questions, results in input order, rate limiting, retries on 429/529/5xx, no retries on 401/422, and input-token cost tracking. Models: jev (TypeSafe direct, TYPESAFE_API_KEY), jev-openrouter and jev-1.13-openrouter (OpenRouter’s decisions endpoint), all at $0.042 per million input tokens with free output. Other providers that adopt the API can be added with register_decision_provider() and register_decision_model(). Every model passed a live check (tests/one_off/test_decide_live.py).
  • Claude Sonnet 5.5: Added native Anthropic claude-5.5-sonnet (claude-sonnet-5-5) and the claude-5.5-sonnet-bedrock-global profile at $2 input / $0.20 cache read / $2.50 cache write / $10 output per million tokens, with xhigh/max effort. AWS offers only the Global profile; us.anthropic.claude-sonnet-5-5 is rejected as an invalid identifier. Sonnet 5.5 rejects disabled thinking, so reasoning_effort="none" and zero thinking budgets are sent as between_tools (effort high or below; xhigh/max fail fast). Forced tool_choice now fails fast, as does max_turns_warning="ephemeral". The direct API sends thinking-binding controls when thinking is adaptive, and task_budget is supported. Sonnet 5 name checks no longer match Sonnet 5.5. Native and Bedrock Global live runs passed, including thinking replay across turns and a tool loop (6fb666f).
  • GPT-6.1 Sol: Added native OpenAI gpt-6.1-sol (alias gpt-6.1, $2 / $0.10 cached / $2.50 cache write / $10) plus gpt-6.1-sol-bedrock US and gpt-6.1-sol-bedrock-global profiles over Chat Completions and Responses. It supports low through max reasoning; none is mapped to low with a warning. Chat Completions with function tools fails fast, so use use_responses_api=True. Bedrock US pricing carries AWS’s 10% regional uplift; AWS had not published price SKUs yet. Every native and Bedrock profile passed live validation (6fb666f).
  • Claude Sonnet 5 pricing: Lowered to $2 / $0.20 cache read / $2.50 cache write / $10 on the direct API and Bedrock (6fb666f).
  • Fallback-only models: LLMClient(..., fallback_models=[...]) appends models with zero weight. They never take first-attempt traffic and are used only when a retry switches models or every weighted model is blocklisted. Explicit zero weights no longer crash retries with ValueError: Total of weights must be greater than zero, and all-zero weights now fail at construction.
  • Gemini 5xx failover: Gemini 500, 502, 503, and 504 responses now set retry_with_different_model, matching the other providers, so multi-model clients fail over instead of retrying the same model.
  • Gemini media resolution: Send global media_resolution as the uppercase enum required by Gemini’s generationConfig.mediaResolution, fixing requests that set this option. Added a live image test that passed against Gemini 3.8 Flash with media_resolution_high.
  • Unified agent loops: run_agent_loop, its queued and synchronous variants, and batch agent loops now work with the Responses API as well as other providers. They share the same loop engine as the Responses start() auto-loop, accept on_message for each appended assistant and tool message, and return APIResponse.trajectory and loop_stop_reason. The existing on_round_complete callback remains available. run_agent_loop keeps its five-round default; start() keeps its 100-round default and unchanged auto-loop behavior.
  • Explicit turn-limit warnings: Agent loops default to max_turns_warning="omit" and inject no final-turn message. Choose "retain" to send the warning and preserve it in the conversation, trajectory, and on_message callbacks, or "ephemeral" to send it only in the last request. Ephemeral warnings fail fast for Claude Opus 5.5 and Fable 5.1, including Bedrock and mixed-model clients, because dropping the warning breaks signed-thinking replay. Responses start() auto-loops continue to omit warnings. If the last allowed response requests local tools, those tools remain unexecuted; the stop reason is "max_rounds".
  • Claude Opus 5.5: Added native Anthropic claude-5.5-opus (claude-opus-5-5) plus claude-5.5-opus-bedrock US and claude-5.5-opus-bedrock-global profiles at $4 input / $0.20 cache read / $5 cache write / $20 output per million tokens, with adaptive summarized thinking and xhigh/max effort. Opus 5.5’s thinking is always on, so reasoning_effort="none", zero thinking budgets, and disabled thinking now fail fast, as does forced tool_choice. The direct API sends the same thinking-binding controls as Fable 5.1; Bedrock omits them until AWS enables them for this model. Opus 5 name checks no longer match Opus 5.5. Native and Bedrock live runs passed, including exact thinking replay across turns (9860f88).
  • GPT-6 Sol and Luna: Added native OpenAI gpt-6-sol (alias gpt-6, $2 / $0.20 cached / $10) and gpt-6-luna ($0.10 / $0.01 / $0.50), plus US (gpt-6-sol-bedrock, gpt-6-luna-bedrock) and Global (-bedrock-global) Bedrock profiles over both Chat Completions and Responses. Both support none through max reasoning, verbosity, and image input. Bedrock US pricing carries AWS’s 10% regional uplift over OpenAI’s rates; AWS had not published price SKUs yet. Every native and Bedrock profile passed live validation on both API shapes, including the Global profiles (9860f88).
  • Mercury 2.5 on OpenRouter: Added mercury-2.5-openrouter for Inception’s inception/mercury-2.5, with structured output, reasoning, and $0.04 / $0.004 cached / $0.15 pricing (4f2f126).
  • OpenAI cache-write accounting: Parse optional cache-write counts from Chat Completions and Responses usage, including OpenAI on Bedrock. Charge the configured write rate without double-counting input tokens, falling back to the input rate when no separate write rate is configured. Older compatible responses remain supported.
  • GPT-5.6 Luna and Terra price cuts: Native OpenAI gpt-5.6-luna now prices at $0.20 input / $0.02 cached / $1.20 output per million tokens, and gpt-5.6-terra at $2.00 / $0.20 / $12.00, matching OpenAI’s September 2026 rates; cache-write costs keep the 1.25x input ratio. Bedrock profiles are unchanged.
  • GPT-6 Astra: Added native OpenAI gpt-6-astra plus the advertised gpt-6-astra-bedrock US and gpt-6-astra-bedrock-global Runtime profiles. Astra supports Chat Completions and Responses, image input, low through max reasoning (with unsupported none normalized to low), and native OpenAI Flex/Fast processing. Native OpenAI passed live validation on both API shapes; the strict Bedrock smoke test is included, but this AWS project still returns an invalid-model error while Astra access rolls out (f11779f).
  • GPT-5.6 on Amazon Bedrock: Added US cross-region profiles for Sol, Terra, and Luna over Bedrock’s OpenAI-compatible Chat Completions and Responses endpoints, with image input, reasoning, verbosity, prompt-cache pricing, local MCP/tool handling, and explicit rejection of unsupported Bedrock service tiers and hosted tools. OpenAI Responses parsing is now shared by the native and Bedrock transports. All three US profiles passed live validation; the advertised Global profiles remain disabled after both API shapes rejected their identifiers (5fe8523).
  • Claude Fable 5.1 and safe thinking replay: Added native Anthropic and US/Global Bedrock Fable 5.1 profiles with adaptive summarized thinking, xhigh/max effort, verified Bedrock source regions, and thinking-binding controls. Anthropic and Bedrock now share response-content parsing, omit empty thinking blocks, preserve valid signed payloads, and default to failing loudly when edited history invalidates bound thinking; callers can opt into provider-side block dropping with thinking_prefix_mismatch="drop_block" (eeb5406).
  • Expanded Gemini and Muse catalogs: Added Gemini 3.6, 3.7, and 3.8 Flash through both the native Gemini API and Google’s OpenAI-compatible endpoint, plus Meta muse-spark-1.3 and muse-spark-1.3-contributor. Focused live coverage validates every new non-Bedrock model and documents the contributor variant’s training-data terms (eeb5406).
  • Dependency and developer-tooling hardening: Raised vulnerable Python transitive floors and pinned patched documentation/Cloudflare worker dependencies. Replaced the stale external pre-commit installation with workspace-managed prek, moved Ruff, Pyright, ty, build, and release tools into the uv dev group, made hooks use uv run --no-sync, enforced a three-day minimum dependency age, and established a clean whole-repository Ruff/Pyright/ty baseline (8a21fd1, 5fe8523).
  • GLM 5.3 on Cloudflare Workers AI: Added glm-5.3-cf for Cloudflare’s @cf/zai-org/glm-5.3, with reasoning and structured-output metadata, registry coverage, and a dedicated live completion smoke test (01dca81).
  • GLM 5.3 Flash on OpenRouter: Added the multimodal glm-5.3-flash-openrouter profile with structured output, low/high/max reasoning effort, vision support, baseline pricing metadata, and regression coverage (af208f9).
  • Expanded Cloudflare Workers AI catalog: Added Cloudflare-hosted profiles for GLM 5.3 Flash, Qwen 3.8 27B, DeepSeek V4 Pro and Flash, Moondream 3.1, GLM 5.2, Kimi K2.7 Code, and Kimi K2.6. The new entries expose the documented reasoning, vision, and structured-output capabilities through -cf model IDs (4acf72a).
  • Cloudflare Moondream support: Added a model-specific /ai/run adapter for Moondream 3.1, including image-to-text request mapping and recursive Cloudflare response-envelope normalization. Registry, request, response, and live completion smoke tests cover all eight new Cloudflare models (4acf72a).
  • GLM 5.3 reasoning metadata: Preserved OpenRouter’s default reasoning effort while adding explicit max effort support and regression coverage (27551e8).
  • MCP client coroutine-safe: Make MCP client coroutine-safe (53cd28c).
  • GLM 5.3 on OpenRouter: Added glm-5.3-openrouter (z-ai/glm-5.3) with pricing ($1.40/M input, $4.40/M output, $0.26 cached read) (1ad77e2).
  • Observable Responses agent loop: start() and start_nowait() accept max_rounds (replacing the hardcoded 100-round limit, validated >= 1) and an on_message async callback that receives each Message as it is appended to the loop’s working conversation — the assistant message before its local tools execute, the tool message after that round’s tools finish. APIResponse gains additive trajectory (the full multi-round Conversation, previously discarded) and loop_stop_reason ("no_tool_calls", "max_rounds", or "error") fields. Trajectories preserve input Message.extra and model_used, and record the responding model per round. When max_rounds is reached with pending tool calls, the calls are no longer executed (their results could never be consumed). The run_agent_loop Responses-mode guard is unchanged. See AGENT_LOOP_STREAMING_SPEC.md.
  • Lossless conversation logs (v2): to_log() now defaults to lossless=True, preserving full tool results (including list-of-parts results that previously became "<Tool result (N blocks)>" placeholders), Thinking.raw_payload/id/summary (encrypted Responses reasoning items), ToolCall.built_in/built_in_type/extra_body, ToolResult metadata and files, Message.extra, and media bytes. A lossless round-trip reproduces identical to_openai_responses() input items. lossless=False opts into compact logs that drop only large opaque payloads (media bytes, raw reasoning, raw response items) with typed omission markers. preserve_media is deprecated but honored (True → lossless, False → compact) with a DeprecationWarning. from_log() loads v1 logs, v2 lossless, and v2 compact payloads best-effort without raising. Conversation.to_log/from_log now delegate to the Message-level serializers instead of maintaining a second copy. See LOG_V2_SPEC.md.
  • Meta Muse Spark models: Replaced the retired direct Meta Llama catalog with muse-spark-1.1, muse-spark-1.2, and muse-spark-1.2-contributor through the Meta Model API. The new profiles support images, structured output, reasoning, Chat Completions, and the Responses API. Meta credentials can now come from either META_API_KEY or MODEL_API_KEY, with META_API_KEY taking precedence. Documentation calls out the contributor model’s training-data terms.
  • Stateless Responses history: Added stateless_responses to LLMClient and request contexts. Stateless requests set store=false, request encrypted reasoning content, and replay that reasoning safely in later turns; validation rejects incompatible stored-history and background-mode combinations. Models can declare a preferred or required history mode, and Muse Spark requires stateless operation. Responses serialization now preserves encrypted reasoning even without tool calls and emits a valid follower item when needed.
  • Expanded model registry: Added OpenRouter profiles for DeepSeek V4 Flash 0731, Inkling and Inkling Small, Laguna S/XS 2.1, Kimi K2.7 Code, Kimi K3, Muse Spark 1.1, GLM 5.2, Nemotron 3 Ultra, and MiniMax M3. Registry initialization now consistently treats mapping keys as canonical IDs, fixing a copy-paste collision that made nemotron-3-ultra-openrouter unreachable.
  • Agent-loop streaming design: Added an implementation-ready specification for a unified observable agent loop with streamed text, reasoning, tool-call lifecycle events, cancellation semantics, compatibility guarantees, and a staged migration plan.
  • GPT-5.6 models: Added OpenAI gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna, with the gpt-5.6 alias routing to Sol. GPT-5.6 supports Responses API generation, image input, structured outputs, xhigh and max reasoning efforts, explicit reasoning_effort="none", verbosity, and cache-write-aware pricing metadata. Responses requests now merge extra_body["reasoning"], enabling small passthroughs such as { "mode": "pro" } without adding a separate client option. Reasoning-effort normalization now uses model capability metadata, accepts max throughout the public client and proxy types, safely maps unsupported values for older OpenAI-compatible, Gemini, and Anthropic models, and preserves canonical model IDs such as gpt-5.1-codex-max ahead of suffix parsing. Live validation passed for Sol, Terra, and Luna through the lm-deluge 1Password environment.
  • Claude Opus 5: Added native Anthropic claude-5-opus support plus claude-5-opus-bedrock and claude-5-opus-bedrock-global profiles. Opus 5 uses adaptive summarized thinking, xhigh/max effort, task budgets, sampling-parameter stripping, and explicit disabled-thinking handling for reasoning_effort="none" and thinking_budget=0. Added focused request tests and live Anthropic/Bedrock region-audit scripts.
  • Bedrock reasoning fixes: Bedrock Opus 4.5 no longer receives the unsupported GA output_config field, while newer models retain shared effort handling. Summarized thinking from Claude 4.7+ is now preserved as a summary with its signed raw payload shaped for safe multi-turn round trips. Expanded unit and live coverage across disabled, adaptive, and budget-based thinking modes.
  • AWS Lambda MicroVM sandbox add-on: Added the opt-in LambdaMicroVMSandbox and content-addressed LambdaMicroVMImageBuilder, including Docker-context filtering with pre-read size/type enforcement, image reuse/rebuild handling, idempotent launches, authenticated command-agent access, cancellation-safe cleanup, suspend/resume support, bounded command-output reads, fail-closed egress configuration, documentation, and unit/live smoke tests.
  • Dependency and build hardening: Raised minimum-safe Python dependency versions across core and optional extras, including aiohttp, Pillow, Pygments, AWS, Google, Docker, and server dependency trees, and aligned the legacy requirements.txt with package metadata. Migrated the documentation site and Cloudflare sandbox worker from npm lockfiles to pnpm, upgraded vulnerable Astro/Wrangler dependency graphs, pinned the Cloudflare Sandbox SDK, enforced Node 22 floors, made the worker deploy script install from its frozen pnpm lockfile, and updated preview routing for the pinned Sandbox SDK API.
  • Bedrock now forwards thinking/effort settings: The Bedrock Anthropic request builder previously ignored thinking_budget, reasoning_effort, and global_effort entirely — thinking could never be enabled via Bedrock, silently. The reasoning/effort logic is now shared with the direct Anthropic builder (apply_anthropic_reasoning_config), so both routes send identical thinking and output_config payloads: adaptive thinking + effort on Claude 4.6+, budget_tokens (with the max_tokens bump and temperature pinning) on older reasoning models, and effort-to-budget translation. Models without extended thinking omit the thinking field, and Claude 4.6 on Bedrock drops non-default temperature when thinking is active, mirroring the direct route.
  • Behavior change: Claude 4.6+ Bedrock models now default to adaptive thinking with output_config.effort: high, matching the direct Anthropic API. Adaptive thinking shares the max_new_tokens budget with visible output (by design — adaptive usage can’t be predicted, so headroom is the caller’s responsibility). Callers relying on the old “Bedrock never thinks” behavior should pass reasoning_effort="none" or raise max_new_tokens.
  • Bedrock-aware model version checks: _is_claude_47, _is_claude_5_sonnet, and GA-effort detection now recognize Bedrock model names (e.g. us.anthropic.claude-fable-5, us.anthropic.claude-sonnet-5), so version-gated request features apply consistently across routes.
  • Claude Sonnet 5: Added claude-5-sonnet for the Anthropic API with claude-sonnet-5 alias support, adaptive thinking defaults, removed manual thinking-budget translation, sampling-parameter stripping, assistant-prefill blocking, and focused request/live coverage. Added Bedrock profiles claude-5-sonnet-bedrock (us.anthropic.claude-sonnet-5) and claude-5-sonnet-bedrock-global (global.anthropic.claude-sonnet-5). Live validation passed through bop run lm-deluge -- ... for the Anthropic API, all 6 configured US Bedrock source regions, and all 30 configured global Bedrock source regions.
  • Invalid reasoning config validation: Added request validation that fails fast for incompatible model/request combinations instead of sending requests that the provider rejects later. Anthropic adaptive-thinking requests now strip or reject non-default temperature, and GPT-5.4/GPT-5.5 reasoning models now reject function tools on Chat Completions with a clear use_responses_api=True error.
  • Gemini 3.1 Flash-Lite GA: Added gemini-3.1-flash-lite for the native Gemini API and updated gemini-3.1-flash-lite-compat to target the GA model name instead of the discontinued preview. The preview ID remains registered for backward compatibility. Live validation passed for native basic completion, native tool use, and the OpenAI-compatible basic completion path.
  • Claude Opus 4.8: Added claude-4.8-opus for the Anthropic API plus claude-4.8-opus-bedrock and claude-4.8-opus-bedrock-global for Amazon Bedrock. Opus 4.8 uses the Claude 4.7+ request path for adaptive thinking, output_config.effort, xhigh, task budgets, and sampling-parameter stripping. Live Bedrock audits passed all configured US regions and all 30 configured global regions after excluding me-south-1, which timed out empirically.
  • Claude Opus 4.7 and Bedrock global profiles: Added claude-4.7-opus and its US/global Bedrock profiles, including request-builder support for adaptive thinking, summarized thinking display, effort defaults, task budgets, assistant-prefill rejection, and 4.7 sampling constraints.
  • New model families: Added Gemini 3.5 Flash (gemini-3.5-flash and OpenAI-compatible variant), GPT-5.5, DeepSeek V4 Pro/Flash, Kimi K2.6 through both Moonshot and OpenRouter, NVIDIA hosted NIM models/dynamic nvidia: model IDs, Perceptron (perceptron-mk1, isaac-0.2-2b, sonar) with image/video support, and a native Moondream provider plus MoondreamClient.
  • Spatial utilities: Refactored lm_deluge.util.spatial into a package with shared point/box/count parsing, drawing helpers, and provider-specific parsers for Gemini, Moondream, and Perceptron. Added focused spatial tests for normalization and provider output parsing.
  • Bedrock auth hardening: Replaced requests-aws4auth with an internal Python 3.10-compatible AWS SigV4 header signer that works for Bedrock and straightforward AWS services such as S3. Bedrock Anthropic, OpenAI-compatible, and Nova request paths now sign aiohttp requests directly; API-key auth still takes precedence when present.
  • Dependency and secret-loading cleanup: Removed python-dotenv, requests, and requests-aws4auth from core/runtime dependency paths. Library code and tests now expect credentials from the process environment instead of loading .env files implicitly, reducing surprise secret loading in production.
  • Prompt media and URL handling: Added a Video prompt part and shared async URL byte-fetching helpers so providers that require inline media can fetch and encode images/video without the requests dependency.
  • Rate-limit defaults: Raised the default token-per-minute budget from 100_000 to 500_000, reducing failures for prompts that naturally exceed the old default.
  • Cloudflare sandbox prefab: Added the Cloudflare Worker sandbox assets and prefab plumbing for lightweight remote command execution.
  • NVIDIA provider: Added a first-class NVIDIA hosted NIM provider using https://integrate.api.nvidia.com/v1 with NVIDIA_API_KEY. Includes curated registry entries for models such as minimax-m2.7-nvidia, deepseek-3.2-nvidia, kimi-k2.5-nvidia, glm-5.1-nvidia, gpt-oss-120b-nvidia, and sarvam-m-nvidia.
  • Dynamic NVIDIA catalog models: You can now use arbitrary hosted catalog slugs via the nvidia: prefix, for example nvidia:z-ai/glm-5.1 or nvidia:openai/gpt-oss-120b, without waiting for a registry update.
  • OpenAI-compatible passthrough fix: extra_body is now merged into OpenAI-compatible chat-completions requests, which is required for provider-specific knobs like NVIDIA’s chat_template_kwargs.
  • Cloudflare Workers AI provider: New provider with 6 models — Kimi K2.5, GLM-4.7-Flash, GPT-OSS-120B, Llama 4 Scout, Gemma 4 26B, and Nemotron 3 120B. Uses Cloudflare’s OpenAI-compatible endpoint with a thin custom handler for account ID injection. Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID env vars. Model IDs are suffixed -cf (e.g. kimi-k2.5-cf, llama-4-scout-cf).
  • Gemini batch processing: Added submit_batches_gemini for Gemini’s native batch API with file upload, polling, and result retrieval. Integrates with the existing submit_batch_job / wait_for_batch_job client methods.
  • GPT-5.4 mini and nano: Added gpt-5.4-mini ($0.75/$4.50) and gpt-5.4-nano ($0.20/$1.25) to the OpenAI registry with xhigh reasoning and verbosity support.
  • Arcee Trinity models: Added trinity-large-thinking and trinity-large-preview reasoning models from Arcee AI.
  • GPT-5.4 mini and nano: Added gpt-5.4-mini and gpt-5.4-nano to the OpenAI registry with the same reasoning and capability handling as gpt-5.4, plus the new pricing tiers. Added a live one-off smoke test that exercises both models against the OpenAI API and verifies cost accounting.
  • Audio file type inference: When passing raw bytes to transcribe_async / transcribe_sync, the library now uses filetype to detect the actual audio format (mp3, ogg, flac, etc.) instead of blindly assuming WAV. A new AudioSource type alias also accepts (bytes, filename) tuples so callers can preserve the original format and extension when the bytes come from an in-memory source.
  • Audio transcription: New lm_deluge.transcribe module — a lightweight, standalone transcription client (like embed). Supports OpenAI (whisper-1, gpt-4o-transcribe, gpt-4o-mini-transcribe), Mistral (voxtral-mini-latest), Fireworks (whisper-v3, whisper-v3-turbo), and Deepgram (nova-3, nova-2). Parallel batch transcription with rate limiting, retries, cost tracking, and progress bars. Use transcribe_async / transcribe_sync with file paths, Path objects, or raw bytes.
  • Auto-splitting for long audio: When a file exceeds a model’s duration or file-size limit, the module automatically splits it into chunks via ffmpeg, transcribes the chunks in parallel, and stitches the results back together — timestamps, segments, and words are all adjusted to reflect the original file’s timeline. If ffmpeg isn’t installed and the file is within limits, it sends directly; if the file exceeds limits and ffmpeg is missing, a clear error message tells the user what to do.
  • TranscriptionResponse: Results include .text, .language, .duration, .segments (list of TranscriptionSegment with start/end/speaker), and .words. Duration and language are filled in from ffprobe when the API doesn’t return them (e.g. gpt-4o-transcribe models).
  • GPT-5.4 models: Added gpt-5.4 ($2.50/$15) and gpt-5.4-pro ($30/$180) — OpenAI’s latest reasoning models with image support and xhigh reasoning effort.
  • Verbosity parameter: New verbosity param on LLMClient and SamplingParams as a unified alias for output effort control. Maps to OpenAI’s native verbosity API field (low/medium/high) on GPT-5+ models, and to Anthropic’s output_config.effort on Claude 4.5+/4.6 models. Cross-provider values are normalized automatically (e.g. "max" → "high" for OpenAI with a warning). verbosity and global_effort stay synced — setting one sets the other, and providing conflicting values raises ValueError.
  • Lazy effort defaults: global_effort no longer defaults to "high" in SamplingParams. Instead, the Anthropic request builder applies the "high" default only for models that support GA effort, avoiding unnecessary params for other providers.
  • Warning cleanup: Anthropic’s json_mode-without-schema warning now fires once via maybe_warn instead of printing every time. New warning keys for unsupported verbosity/effort combinations.
  • Proxy server verbosity: The OpenAI-compatible proxy server now accepts and forwards the verbosity field in chat completion requests.
  • Session sharing: Batch requests (process_batch, batch_agent_loop) now share a single aiohttp.ClientSession across all tasks, reducing connection overhead and improving throughput for large batches. The connector pool is sized with headroom above max_concurrent_requests so aiohttp never becomes the hidden bottleneck.
  • Improved rate-limit dispatch: Replaced _wait_for_capacity with _consume_rate_capacity — rate-limit waiting now happens before acquiring the concurrency semaphore, fixing head-of-line blocking for mixed-size requests. Wait times are computed dynamically from RPM/TPM deficit instead of fixed sleeps. Requests that can never fit the TPM budget raise immediately with a clear error instead of hanging forever.
  • Graceful exception handling in batches: process_batch and batch_agent_loop now use return_exceptions=True in asyncio.gather, so a single failing task no longer cancels all siblings. Exceptions are converted to error APIResponse objects, giving callers a uniform list back.
  • Gemini 3.1 Flash Lite: Added gemini-3.1-flash-lite-preview (native Gemini API) and gemini-3.1-flash-lite-compat (OpenAI-compatible endpoint). Google’s most cost-efficient multimodal model — $0.25/M input, $1.50/M output. Supports thinking, structured outputs, and function calling (native endpoint only; the OpenAI-compat endpoint doesn’t support tool calling for Gemini 3.x due to thought signature requirements).
  • Dynamic-filtering web search tool: Added web_search_tool_dynamic() for Anthropic’s new web_search_20260209 tool, which lets Claude write and execute code to filter search results before they enter the context window. Only supported on Claude Opus 4.6 and Sonnet 4.6 — raises ValueError for unsupported models. The API auto-injects the code execution tool, so you don’t need to pass it separately. The existing web_search_tool() (web_search_20250305) remains available for all models.
  • user_location for web search: Both web_search_tool() and web_search_tool_dynamic() now accept a user_location dict to localize search results by city, region, country, and timezone.
  • Graceful ClientOSError handling: aiohttp.ClientOSError (connection reset, broken pipe, etc.) now returns a structured error APIResponse instead of an unhandled exception traceback.
  • Bedrock API key authentication: Bedrock now supports the new AWS Bedrock API keys alongside the existing SigV4 (access key + secret) auth flow. Set BEDROCK_API_KEY, AWS_BEDROCK_API_KEY, or AWS_BEARER_TOKEN_BEDROCK to use simple Bearer-token auth — no requests-aws4auth dependency needed. When both an API key and IAM credentials are present, the API key takes precedence. Auth logic consolidated into a shared bedrock_auth module, removing duplication across the Anthropic, OpenAI, and Nova Bedrock request builders.
  • JustBashSandbox: New cross-platform sandbox powered by Vercel’s just-bash. Provides read-scoped, network-disabled, copy-on-write execution without Docker or platform-specific tooling. Supports configurable root_dir, working_dir, read-only mode, optional Python via enable_python, auto-install of the just-bash CLI, background process tracking, and the same bash / list_processes tool interface as other sandboxes. See Tool Use for usage.
  • Inception (Mercury 2) support: Added mercury-2 model from Inception Labs — a fast diffusion-based LLM with 128K context. Uses the OpenAI-compatible endpoint at api.inceptionlabs.ai. Supports tool calling, structured outputs, and reasoning_effort with Mercury-specific mapping ("none" / "minimal" → "instant" mode for near-zero-latency responses). Requires INCEPTION_API_KEY env var.
  • Bedrock Updates: Anthropic Bedrock provider deprecated older models that aren’t supported, added more US regions for US cross-region inference, and added support for Global cross-region inference via ‘-global’ models that work across many regions for Claude 4 onwards. This allows much higher TPM/RPM compared to previous setup (only using us-west). Global is opt-in by choosing ‘-global’-suffixed models. Make sure to enable all regions in your AWS account to avoid errors with disabled regions.
  • Automatic prompt caching: New cache="automatic" pattern that sets the top-level cache_control flag on Anthropic requests, letting the provider decide what to cache instead of manually specifying cache breakpoints. Supported in LLMClient, run_agent_loop, and the proxy server (DELUGE_CACHE_PATTERN=automatic). Bedrock does not support this mode and will emit a warning and fall back to no caching if automatic is requested.
  • PybubbleSandbox: New Linux sandbox backed by pybubble (bubblewrap). Provides filesystem and process isolation without Docker — just needs bwrap installed. Supports configurable network access (network_access, outbound_access, allow_host_loopback), optional fallback to host-network sharing in restricted runtimes (requires allow_host_loopback=True), background process tracking, and the same bash / list_processes tool interface as other sandboxes. Requires the pybubble dependency and Linux. See Tool Use for usage.
  • Agent loop final-turn warning: When run_agent_loop reaches its last round (max_rounds), a user message is now injected telling the model it must return a text response and cannot call any more tools. This prevents agents from wasting the final turn on tool calls that will never be executed, making SubAgentManager and agent loops in general more reliable.
  • New VectorDBManager prefab tool: In-process vector database for agents, backed by numpy with brute-force cosine similarity search. Exposes insert, search, get, delete, count, and list commands. Supports a pluggable VectorDBBackend ABC so you can swap in heavier stores (USearch, turbopuffer, etc.) without changing tool wiring. Ships with InProcessVectorDB for small-to-medium collections (~100k vectors). Available via the new vector_db optional extra (pip install lm_deluge[vector_db]).
  • Retry-After header support for rate limiting: All providers (Anthropic, OpenAI, Gemini, Bedrock, Bedrock Nova, Mistral) now parse retry-after and retry-after-ms response headers on 429s and use the server-suggested cooldown duration instead of a fixed pause. Capped at MAX_COOLDOWN_SECONDS for safety.
  • Improved cooldown logging: Rate-limit pause messages now print once per cooldown event (not once per waiting task) and show the actual pause duration, reducing log noise during heavy parallel runs.
  • Relaxed markdownify-rs version: Changed from pinned ==0.1.1 to >=0.1.1.
  • New SqliteManager prefab tool: Schema-first SQLite tool for agents — supports list_tables, describe_table, and query commands with progressive disclosure. Build a DB from a list-of-dicts via SqliteManager.from_dicts() (auto-infers column types including JSON columns) or point at an existing .db file. Supports read-only mode, parameterized queries, multiple output formats (JSON, YAML, CSV, TSV), row-count truncation, and sample rows. See Tool Use for usage.
  • Retired claude-3.5-haiku: Removed claude-3.5-haiku (claude-3-5-haiku-20241022) from the model registry — the model has been retired by Anthropic. Use claude-4.5-haiku instead. Remaining references to 3.5-haiku in examples and tests have been updated to 4.5-haiku.
  • Embedding rate limiting: embed_parallel_async now accepts max_requests_per_minute and max_tokens_per_minute parameters, using the same StatusTracker capacity system as LLMClient. Rate-limit (429) responses trigger automatic cooldown. Previously these were accepted as **kwargs and leaked into the API payload, causing request failures.
  • Deterministic test suite: Added tests/core/test_embed.py with 15 tests covering request building, response parsing, payload isolation (control kwargs never leak to the API), rate-limit param acceptance, and edge cases — no live API calls required.
  • Embeddings rewrite: Completely rewrote lm_deluge.embed — the old implementation was broken (crashed immediately due to a serialization bug). The new module uses asyncio.gather + Semaphore for clean parallel batching with per-request sessions, exponential backoff retries, and live cost/token tracking in the progress bar.
  • Cohere v2 API: Switched Cohere embeddings from the deprecated v1 to the v2 endpoint (/v2/embed).
  • New model: embed-v4.0: Added Cohere’s latest embedding model with configurable output dimensions (256, 512, 1024, 1536) and 128k context window.
  • Cost tracking: Embeddings now track tokens and cost live in the tqdm progress bar and print a summary on completion. Each EmbeddingResponse includes a tokens_used field. Updated pricing for all models.
  • embed_sync helper: New synchronous convenience wrapper that returns a flat list of embedding vectors.
  • New docs page: Added Embeddings documentation with model table, examples, and configuration reference.
  • Claude Sonnet 4.6 support: Added claude-4.6-sonnet (claude-sonnet-4-6) with $3/$15 pricing, GA structured outputs, image input, and reasoning support. Also added Bedrock entries for both 4.6 models (claude-4.6-opus-bedrock, claude-4.6-sonnet-bedrock).
  • Adaptive thinking default for all 4.6 models: Both Opus 4.6 and Sonnet 4.6 now default to thinking: {type: "adaptive"} when no explicit thinking_budget is set. Explicit budget_tokens still works but emits a deprecation warning.
  • GA effort parameter for Sonnet 4.6: global_effort and reasoning_effort now map to output_config.effort for Sonnet 4.6 (previously only Opus 4.5/4.6). The -low, -medium, -high model name suffixes work as expected (e.g. claude-4.6-sonnet-medium).
  • Prefill blocking for Sonnet 4.6: Assistant message prefill is now rejected for all 4.6 models (was previously Opus-only), matching the upstream API behavior.
  • Model aliases: Models can now define an aliases list so common alternative names resolve to the same model. For example, claude-sonnet-4-6 (the API name) now resolves to claude-4.6-sonnet, and claude-haiku-4.5 resolves to claude-4.5-haiku. Aliases work with reasoning suffixes too (e.g. claude-sonnet-4-6-high). All Anthropic models with differing API names have aliases configured.
  • Duplicate model registration warning: register_model() now prints a warning when a model id or alias collides with an existing registry entry, catching configuration bugs at import time.
  • File and image URL passthrough: File and Image objects now accept HTTP(S) URLs as data and pass them directly to providers that support it (OpenAI Responses API, Anthropic, Google Gemini), avoiding unnecessary download and base64-encoding. Providers that don’t support URL passthrough (OpenAI Chat Completions for files, Mistral, Nova) automatically fall back to downloading and base64-encoding.
  • Fixed OpenAI Responses input_file deserialization: Conversation.from_openai_chat() now correctly parses input_file blocks where file_url, file_data, and filename are at the top level of the block (as emitted by the Responses API), not nested inside a sub-dict.
  • Dropped tiktoken dependency: Removed tiktoken from project dependencies (pyproject.toml and requirements.txt) and switched Conversation.count_tokens() to a lightweight heuristic (len(text) // 4) for text token estimation.
  • Fixed OpenAI Responses usage parsing: Usage.from_openai_usage() now supports both OpenAI shapes: Chat Completions (prompt_tokens / completion_tokens, prompt_tokens_details) and Responses API (input_tokens / output_tokens, input_tokens_details), including cache-read token extraction in both cases.
  • Added coverage for usage/cost correctness:
    • Extended tests/core/test_incomplete_response.py to assert usage mapping for Responses payloads and added a direct compatibility test for both OpenAI usage formats.
    • Added a new live test tests/models/test_gpt_5_2_responses_cost_live.py that uses dotenv, calls gpt-5.2 with use_responses_api=True, and verifies non-zero usage/cost plus exact usage-to-cost reconciliation against model pricing.
  • Test cleanup: Minor formatting/type-hint cleanup in tests/models/test_xhigh_reasoning.py to keep lint/type checks clean.
  • Anthropic tool schemas strip unsupported constraints: Tool schemas sent to Anthropic now automatically remove numeric constraints (minimum, maximum, etc.) that the API rejects, folding them into the property’s description so the model still sees the intent. This applies to Tool.for_anthropic() (both strict and non-strict modes) and to raw dict tool definitions passed through tools=, including nested custom tool schemas. Caller-provided dicts are never mutated.
  • JSON healing: escape unescaped interior quotes: load_json now detects and escapes double quotes inside JSON string values that weren’t properly escaped (e.g. "the agent ("attorney-in-fact") is authorized"). Uses structural context — a quote only counts as a real string terminator if the next non-whitespace character is a JSON delimiter (,, }, ], :). Tried as a later fallback after bracket/comma healing to avoid false positives on valid JSON.
  • Immediate error on impossible token budget: Requests whose estimated token count (prompt + max_new_tokens) exceeds max_tokens_per_minute now raise a ValueError immediately instead of hanging forever waiting for capacity that can never be granted.
  • Added full Claude Opus 4.6 request support in the Anthropic builder: adaptive thinking (thinking: {type: "adaptive"}), 128k-style large-output compatibility plumbing, inference_geo passthrough, and Opus 4.6 assistant-prefill rejection behavior.
  • Migrated Opus effort handling to GA shape for both claude-4.5-opus and claude-4.6-opus via output_config.effort (including support for global_effort="max"), removing reliance on the old effort beta header path.
  • Added compatibility passthrough for deprecated Anthropic output_format by mapping it to output_config.format, while preserving native output_config.format structured outputs.
  • Expanded proxy/server Anthropic compatibility models + adapters to parse/forward output_config, deprecated output_format, and inference_geo.
  • Added/updated regression coverage in tests/models/test_anthropic_thinking_budget.py, tests/core/test_server_adapters.py, and tests/core/test_new_llmclient_api.py.
  • Added live network validation in tests/one_off/test_anthropic_opus_46_features_live.py (loads .env via dotenv.load_dotenv()), covering Opus 4.5/4.6 effort, adaptive thinking, inference_geo, deprecated output_format, and prefill rejection.
  • OpenAI Responses API now supports images in tool results: Tool results containing [Text(...), Image(...)] lists are now properly serialized as arrays with input_text and input_image types, allowing models to see images returned by tools natively.
  • Fixed OpenAI Chat Completions image extraction: Tool results with images now correctly append a user message containing the extracted images (was creating the message but not adding it to the request).
  • Image detail field: Image.oa_resp() now includes the detail field for controlling image processing fidelity.
  • Anthropic structured outputs are GA: Structured outputs now use output_config.format (no beta header), and Claude 4.5 models are marked JSON-capable.
  • FilesystemManager zip URLs: FilesystemManager.from_zip() now accepts http(s) URLs to preload a workspace from a remote zip file.
  • Curl tool jq piping: get_curl_tool() now allows piping output to jq for JSON filtering while continuing to block other shell pipes.
  • New get_curl_tool() prefab: A lightweight curl tool for making HTTP requests without needing a full sandbox. Validates commands to prevent shell injection, whitelists safe flags, and blocks requests to localhost/private IPs. Pair it with FilesystemManager for agents that need to fetch data and read/write files. See Tool Use for usage.
  • Verbose mode for agent loops: Pass verbose=True to run_agent_loop(), run_agent_loop_sync(), start_agent_loop_nowait(), or the batch variants to print each tool call and result as the agent runs. Long arguments and outputs are automatically truncated for readability.
  • Lazy imports for prefab tools: The lm_deluge.tool.prefab module now uses lazy imports, so importing one tool (e.g., ModalSandbox) no longer requires dependencies for unrelated tools (e.g., lenlp/tantivy for FullTextSearchManager). Each tool’s dependencies are only loaded when that specific tool is used.
  • Model fallbacks, blocklisting, and stickiness: Multi-model clients now support intelligent fallback behavior. Configure prefer_model="claude-4-sonnet" to always try your preferred model first with automatic failover, or use prefer_model="last" for multi-turn conversations to stick to whichever model was used previously (survives serialization via conv.model_used). Models that fail with unrecoverable errors (401, 403, 404) get automatically blocklisted for the client’s lifetime, while rate limits and server errors trigger retries. Agent loops automatically maintain stickiness across tool-calling rounds.
  • Added new models: kimi-k2.5 (Moonshot), glm-4.7-flash-openrouter, trinity-large-openrouter, and kimi-k2.5-openrouter via OpenRouter.
  • Added pricing metadata to existing Kimi models (kimi-k2, kimi-k2-turbo, kimi-k2-thinking, kimi-k2-thinking-turbo).
  • New documentation page: Model Fallbacks & Stickiness covering the three key patterns (primary + fallback, load balancing, multi-turn stickiness).
  • Added ZAI (Zhipu AI) models: glm-4.7, glm-4.7-flash, glm-4.6, glm-4.5, and glm-4.5-air via the ZAI API with Anthropic-compatible spec.
  • Replaced fastmcp and mcp dependencies with a minimal built-in MCP client implementation (lm_deluge.mcp), reducing the dependency footprint while supporting HTTP and stdio transports for tool listing and calling.
  • Cleaned up JSON parsing: removed debug print statements from try_load_json().
  • Moved examples into proper documentation pages under /docs/examples/ covering batch processing, chat loops, computer use, and streaming.
  • Added Claude Code skill (lm_deluge.skill.SKILL.md) with embedded usage documentation for Claude Code IDE integrations.
  • Improved aiohttp client connector error messages with clearer diagnostics when connection fails.
  • Updated Slack notification formatting for better readability.
  • Fixed OpenAI Responses API handling of reasoning models with tools: reasoning content (summary blocks) now correctly serializes as reasoning type items with proper summary field structure, fixing issues where tool calls would fail on models like o4-mini.
  • Added test coverage for Responses API reasoning + tool interactions in tests/core/test_openai_responses_reasoning_tools.py.

Bugfixes for OpenAI responses API + client-side tools.

  • OpenAI Responses API now supports client-side tool execution: when you pass Tool objects (or local MCP servers with force_local_mcp=True) to start, start_nowait, process_prompts_async, etc. the client automatically runs an internal tool loop—calling your tools, collecting results, and continuing until the model finishes. Although this basically means we’re running an agent loop (which there are already methods for), this brings it into parity with how the Responses API works when you don’t provide tools that run client-side (you get back a completed response, with all the tool calls and reasoning that led to it). We decided that should match whether or not you have client-side tools, so JUST for the Responses API, we auto-run tools.
  • Responses API response parsing now preserves raw item payloads (raw_item) in ToolCall.extra_body for function calls, MCP calls, web search, and other built-in tools, making it easier to reconstruct the exact request format when needed.
  • Thinking parts from Responses API now include summary and raw_payload fields for richer introspection.
  • Agent loops (run_agent_loop) now raise NotImplementedError when use_responses_api=True to prevent confusion—use start() instead, which handles the tool loop automatically.
  • Added test coverage for Responses API tool call handling in tests/core/test_openai_responses_tool_calls.py.
  • Fixed GPT-5 reasoning effort defaults: GPT-5 models no longer special-case to minimal effort when none is specified; they now follow the standard low default like other reasoning models.
  • Enabled JSON mode support (supports_json: True) for GPT-5 Codex variants (gpt-5.1-codex, gpt-5.1-codex-mini, gpt-5-codex) and gpt-5-chat-latest.
  • Updated Cerebras model catalog: added glm-4.7-cerebras (ZAI GLM 4.7); temporarily disabled preview models (llama-4-scout, llama-4-maverick, qwen-3-235b-thinking, qwen-3-coder) pending availability.
  • Agent loops now accept an on_round_complete callback on run_agent_loop()/run_agent_loop_sync()/start_agent_loop_nowait() (and batch agent loop helpers) for per-round hooks.
  • New tool execution helpers: execute_tool_calls() (plus Tool.find()) for running ToolCalls locally and collecting (tool_call_id, result) tuples.
  • Conversation ergonomics: Conversation.with_tool_results() for adding tool outputs in bulk, and with_tool_result()/Message.with_tool_result() now accept dict results.
  • Added core test coverage for agent loop callbacks and the new tool helper utilities.
  • Added PhilipsHueManager prefab (lm_deluge.tool.prefab) for controlling Philips Hue lights via the local bridge API (list lights, on/off, color, brightness; HUE_BRIDGE_IP + HUE_API_KEY).
  • Added an experimental lm_deluge.pipelines.heartbeat starter for running a model on a schedule.
  • Added a one-off live test for PhilipsHueManager (tests/one_off/test_philips_hue_live.py).
  • Added get_response_files() to lm_deluge.util.anthropic_files to download Anthropic response files in-memory (optionally resolving real filenames via metadata).
  • Anthropic requests now populate APIResponse.finish_reason from stop_reason.
  • Message.user(..., file=...) now accepts a File object directly.
  • Added a one-off regression test for Anthropic finish_reason parsing (tests/one_off/test_anthropic_finish_reason.py).
  • Added Anthropic Skills support: pass skills=[Skill(...)] to start(), run_agent_loop(), or batch methods to use Anthropic’s built-in skills (xlsx, pptx) or custom uploaded skills.
  • New Skill class (lm_deluge.Skill) for defining skills with type (anthropic/custom), skill_id, and version.
  • File download utilities in lm_deluge.util.anthropic_files: download_anthropic_file(), save_response_files(), get_anthropic_file_metadata() for retrieving files generated by skills.
  • ToolResult now includes a files field for code execution outputs, and ContainerFile TypedDict for file metadata.
  • Container ID reuse: container_id parameter on start()/run_agent_loop() and automatic reuse within agent loops to maintain state across turns.
  • Skills documentation page added to the docs site.
  • Added Amazon Nova support on Bedrock (new request handler, model registry entries, prompt/tool/image serialization, and cache-point handling).
  • Expanded Azure catalog with OpenAI-compatible model definitions, dotenv-aware AZURE_URL lookup, and Responses API enabled only for OpenAI family models.
  • Added Tavily + Brave web search managers plus a configurable WebSearchManager to mix search/fetch backends.
  • Tavily extract now guarantees markdown output by converting HTML responses with markdownify when needed.
  • New one-off test suites for Nova Bedrock, Azure models, and Tavily/Brave/WebSearchManager coverage.
  • CLI overhaul: installable deluge and deluge-server entrypoints with list, run, and agent subcommands, model filtering, JSON output, stdin/file inputs, image prompts, and MCP/prefab-enabled agent loops.
  • Model registry now tracks provider + supports_images metadata and exposes find_models() for filtering/sorting by capabilities and cost.
  • OpenRouter catalog expanded with NVIDIA Nemotron 3 Nano 30B (free/paid), Nemotron Nano 12B v2 VL (free/paid vision), Mistral Devstral 2 (free/paid), Xiaomi Mimo V2 Flash (free), AllenAI OLMo 3.1 32B Think (free), and a Trinity Mini free SKU. Removed retired Anthropic models.
  • Prompt refactor: Conversation.system/user are now instance methods (use Conversation().system(...).user(...)), added Conversation.ai, and prompt primitives (File, Image, etc.) live under lm_deluge.prompt with top-level re-exports; RequestContext moved to lm_deluge.api_requests.context.
  • MCP tooling adds MCPServer.from_mcp_config for Claude Desktop config parsing, and MCPServer is now exported at the top level.
  • Dependencies trimmed: removed numpy/pandas; embedding stack_results() now returns Python lists only; logprob utilities use math.
  • Config cleanup: dropped SamplingParams.to_vllm and ComputerUseParams.
  • Docs and repo hygiene: added proxy server docs + nav entry, refreshed README/examples for the new Conversation builder, added lint helper scripts (banned strings/weird spaces/max lines).
  • Proxy server adds configurable model policy (allowlists, defaults, alias routes) with CLI/config support, optional request/provider logging, forwarded anthropic-beta headers, and richer Anthropic request support (thinking config, expanded content blocks).
  • Added thought signature preservation for Gemini 3 and Anthropic responses (including redacted thinking), with updated adapters and tests.
  • Sandbox prefabs reorganized into a package and expanded with a macOS-only SeatbeltSandbox and coverage for the new sandbox flows.
  • Added tinker:// OpenAI-compatible model auto-registration with multipart message flattening.
  • Message/Conversation to_log and from_log can optionally preserve image/file bytes (base64) for round-trip serialization.
  • OpenRouter catalog expands with minimax-m2.1 plus free gpt-oss-20b/gpt-oss-120b entries.
  • Provider compatibility fixes: Anthropic batch submission now posts JSON payloads (no temp JSONL), and Gemini tool schemas strip additionalProperties.
  • Added gemini-3-flash-preview model with v1alpha API endpoint and pricing ($0.50/$3.0 per million tokens input/output).
  • Gemini 3 Flash supports minimal and medium thinking levels directly, unlike Gemini 3 Pro which only supports low and high. The request builder now detects Flash vs Pro and passes the appropriate thinkingLevel values.
  • Added test coverage for Flash-specific thinking levels in tests/models/test_gemini_3_thinking_level.py.
  • New Recursive Language Model (RLM) manager/pipeline brings a tool-driven REPL for very long contexts, with persistent state, guarded imports, lm() fan-out, and final()/final_var() completion; covered by new core and long-context suites (including a 1.5M-char Ulysses run).
  • Added a Tantivy-powered FullTextSearch prefab (search/fetch tools) with query sanitization, optional dedupe, cached fetches, and a BrowseComp-Plus benchmark harness to stress it against ~100k docs.
  • Expanded sandbox prefabs: Modal, Daytona, Docker, and Fargate sandboxes now expose bash/file/process/tunnel helpers with async context managers and background process tracking, plus one-off tests for Docker/Daytona cleanup paths.
  • Packaging: introduced optional extras full_text_search (tantivy+lenlp) and sandbox (modal, daytona-sdk, docker) so heavyweight deps are opt-in; removed the unused deduplicate_strategy parameter from the FTS API.
  • Added xhigh reasoning effort support for GPT-5.2 and GPT-5.1-Codex-Max, the two models that support OpenAI’s new extra-high reasoning tier. Other reasoning models automatically fall back to high with a warning.
  • Model name suffixes now support -xhigh (e.g., gpt-5.2-xhigh) alongside the existing -low, -medium, -high, -minimal, and -none suffixes.
  • Fixed GPT-5.2 and GPT-5.1-Codex-Max requests to omit temperature and top_p when reasoning is enabled, matching OpenAI’s new API constraints for these models.
  • Added supports_xhigh flag to APIModel for models that support the xhigh reasoning tier.
  • Added comprehensive test coverage in tests/models/test_xhigh_reasoning.py.
  • Fixed critical bug in agent loop where conversation.with_tool_result() wasn’t being reassigned, causing tool results to be silently dropped from the conversation history.
  • OpenAI web search tool now defaults to GA mode (preview=False) instead of preview.
  • Added max_content_chars parameter to ExaWebSearchManager for controlling response size.
  • Enhanced OpenAI built-in web search tool with better configuration options.
  • Added comprehensive test coverage for OpenAI web search in tests/core/test_openai_web_search.py.
  • Added TryCua integration for computer use agents, with full executor implementation supporting screenshots, clicks, typing, scrolling, and multi-step tasks.
  • Added Anthropic built-in web search tool support with test coverage.
  • Added Gemini computer use via Kernel executor with dedicated test suite.
  • Added batch agent loops capability for running multiple agent conversations in parallel.
  • Registered new Gemini models including gemini-2.5-pro and gemini-2.5-flash.
  • More prefab tools: added Google Docs tools (metadata, ranged reads/grep, markdown-aware insert/update/replace/delete),Google Sheets tools (list tabs, find used ranges, read ranges as HTML tables, update cells) with service-account auth. Added Exa Web Search tool (more web search tools coming), AWS SES Email tool, S3-backed filesystem and memory.
  • Model catalog: registered Arcee trinity-mini (native, OpenRouter, Together), refreshed DeepSeek pricing plus new reasoner/speciale variants (including an Anthropic-compatible path), and marked Kimi thinking SKUs as reasoning models with a warning when thinking is disabled.
  • Client knobs & coverage: LLMClient now accepts global_effort and thinking_budget at construction so Anthropic-style requests carry the right effort settings, and new suites cover the prefab tools, Arcee tool-calling, DeepSeek Speciale, and S3 integrations.
  • Added _LLMClient.print_usage() and refactored StatusTracker.log_usage() so you can dump cumulative token/cost/time stats mid-run; final status output now reuses the same usage reporter.
  • Drafted a GEPA pipeline implementation plan (src/lm_deluge/pipelines/gepa/GEPA_IMPLEMENTATION_PLAN.md) outlining how to port the GEPA optimizer onto lm-deluge.
  • Tooling overhaul: Tool.from_function now uses Pydantic TypeAdapter for schemas, supports Annotated[...] descriptions, extracts return-type output_schema (with optional runtime validation), and auto-converts TypedDict/Pydantic params. Serialization still honors strict/non-strict modes automatically.
  • New prefab helpers: ToolComposer (OTC) for code-based tool orchestration, BatchTool for bundling calls, ToolSearchTool for regex discovery + invocation, and MemoryManager for long-lived notes. Todos/subagents/filesystem managers stay available under lm_deluge.tool.prefab.
  • Pipelines split: extract, translate, and score_llm now live in lm_deluge.pipelines.
  • Modal sandbox bash drops timeouts for background commands and exposes bash/list_processes/get_url (network optional); docs updated accordingly.
  • Agent ergonomics: Conversation.print() pretty-prints conversations with truncation, and Open Tool Composition prompts now render available tool signatures correctly.
  • Robustness: Anthropic requests now map global_effort to output_config.effort, and aiohttp ServerDisconnectedError surfaces a structured APIResponse instead of an exception.
  • Added global_effort to SamplingParams and Anthropic request wiring so claude-4.5-opus sends the new effort field plus beta header automatically.
  • Exposed thinking_budget on SamplingParams and made it take precedence over reasoning_effort for Anthropic and Gemini reasoning models (with warnings to flag overlaps); Gemini flash-lite enforces its minimum budget.
  • Fixed Gemini 3 request construction to always send generationConfig.thinkingConfig and remapped reasoning_effort="medium"/None to the provider-supported thinking levels.
  • Default temperature raised to 1.0 across docs and config defaults to match current provider behavior.
  • Added regression suites for Anthropic thinking budgets and Gemini reasoning/effort mapping (tests/models/test_anthropic_thinking_budget.py, tests/models/test_gemini_thinking_config.py, tests/models/test_gemini_3_thinking_level.py).
  • Gemini 3 requests now send thinkingLevel="low" when callers specify reasoning_effort="none" or "minimal", avoiding unexpected high-effort reasoning (and cost) when users explicitly ask for lightweight runs.
  • Documented the new sandbox utilities (ModalSandbox and DaytonaSandbox) so agents can execute commands in managed remote environments with optional network blocking, stdout capture, file I/O, and preview tunnels.
  • Fixed FilesystemManager.read_file so empty files no longer throw range errors when agents omit end_line; blank files now return an empty snippet and accurate metadata instead of failing mid-run.
  • Added regression coverage in tests/test_filesystem.py::test_filesystem_manager_reads_empty_files to lock the behavior down.
  • Added FilesystemManager, an in-memory virtual workspace + tool wrapper that gives agents sandboxed read_file / write_file / list_dir / grep / apply_patch capabilities without touching the host filesystem; the implementation lives in lm_deluge.tool.prefab.filesystem.
  • Landed regression coverage in tests/test_filesystem.py plus a scripted live scenario in tests/test_filesystem_live.py so refactors keep the tool contract intact.
  • Documented the new manager throughout the README, feature guide, and API reference so it is easy to wire into existing agent loops (including tips on seeding backends, exporting workspaces, and disabling commands per session).
  • Introduced SubAgentManager, a trio of tools (start_subagent, check_subagent, wait_for_subagent) that lets a primary agent delegate work to cheaper models; real-world coverage lives in tests/core/test_subagent_manager.py and the new Agent guide sections spell out the workflow.
  • Shipped TodoManager/TodoItem/TodoStatus/TodoPriority, giving LLMs a first-class todo scratchpad they can mutate via todowrite/todoread; the integration suite in tests/core/test_todo_manager.py ensures models follow the protocol.
  • _LLMClient now exposes start_agent_loop_nowait() + wait_for_agent_loop() around a new AgentLoopResponse, so you can launch parallel loops and gather the (Conversation, APIResponse) later; tests/core/test_agent_loop.py adds scenarios for concurrent loops and the docs (features, agents guide, API reference) walk through the new APIs.
  • output_schema now accepts raw JSON Schemas or Pydantic BaseModel subclasses. lm_deluge.util.schema.prepare_output_schema() handles the conversion to strict JSON Schema (adds additionalProperties: false, expands $defs, keeps optional fields nullable, etc.) and feeds both Anthropic and OpenAI builders, with coverage in tests/core/test_schema_transformations.py and tests/core/test_pydantic_structured_outputs.py.
  • Anthropic/OpenAI structured output requests now share the same normalization path so provider quirks stay isolated—unsupported Anthropic constraints move into descriptions while OpenAI keeps the tight grammar untouched. Regression suites for the chat and Responses APIs plus new real-run harnesses (tests/one_off/test_anthropic_structured_outputs_real.py, tests/one_off/test_openai_structured_outputs_real.py) make sure the wiring keeps working.
  • Shipped examples/pydantic_structured_outputs_example.py and refreshed the structured outputs docs so teams can drop a Pydantic model into LLMClient.process_prompts_*() without hand-rolling schemas or worrying about mutation.
  • Structured outputs landed across Anthropic and OpenAI: LLMClient(..., output_schema=...) now pushes the JSON Schema to Claude (complete with the structured-outputs-2025-11-13 beta and strict-tool gating) and to both OpenAI chat and Responses API requests, with schema precedence over json_mode everywhere.
  • Tightened tool serialization so strict schemas only turn on when providers actually support it (Bedrock always forces non-strict) and made MCP-backed OpenAI Responses runs share the same strict/non-strict behavior; covered by fresh suites in tests/core/test_openai_structured_outputs.py and tests/core/test_bedrock_requests.py.
  • process_prompts_sync() forwards output_schema, and the new regression test (tests/core/test_process_prompts_sync.py) ensures future changes keep the sync/async surfaces aligned.
  • Added one-off real API coverage for OpenAI structured outputs plus a battery of deterministic unit tests so regressions in schema handling or strict tooling are caught automatically.
  • Added the GPT-5.1 family (standard, Codex, Codex Mini) with pricing metadata and marked them as reasoning models so they Just Work with LLMClient.
  • Extended reasoning suffix parsing to accept -minimal and -none, enforced that Codex variants must run against the Responses API, and added guard rails that convert unsupported efforts to the closest valid value with clear warnings.
  • Updated the OpenAI request builders plus the warning system so GPT-5.1 downgrades from minimal to none transparently while older models downgrade to low, and added coverage for the new models (tests/models/test_gpt_5_1.py).
  • Background requests now honour request_timeout precisely: polling uses a monotonic clock, cancels the remote response before erroring, and surfaces a structured timeout APIResponse instead of hanging jobs.
  • Cancellation is best-effort logged when failures happen so you can trace leaked jobs during debugging.
  • Conversation.from_openai_chat() now filters out whitespace-only text blocks and skips empty messages so bad payloads from upstream providers no longer crash tool execution.
  • MockAsyncOpenAI does a real conversion from OpenAI tool definitions into lm-deluge Tool objects, wires them through LLMClient.start(), and carries the active CachePattern, so you can run copilot-style tools under tests without custom glue.
  • Added a focused test suite for the mock client (tests/test_mock_openai.py) that exercises the OpenAI-compatible surface area.
  • Packaging now re-exports AsyncOpenAI-style exception classes (APIError, APITimeoutError, BadRequestError, RateLimitError) so verifier harnesses can catch them directly from lm_deluge.
  • MockAsyncOpenAI gained full parity with the official AsyncOpenAI signature: you can pass api_key, organization, project, custom base URLs, and call the legacy .completions.create() path in addition to chat completions.
  • Added an async close() noop for compatibility together with extensive tests to ensure verifier integrations behave as expected.
  • Introduced the optional lm-deluge[openai] extra and shipped the first cut of MockAsyncOpenAI, giving you an on-device OpenAI-compatible client backed by LLMClient.
  • Registered the first Moonshot/Kimi (kimi-k2, kimi-k2-turbo, kimi-k2-thinking, kimi-k2-thinking-turbo) and MiniMax (minimax-m2) models so you can swap between those providers without custom API wrappers.
  • Added regression tests for the new models (tests/models/test_kimi_and_minimax.py) to make sure they stay callable.
  • Hardened OpenAIResponsesRequest.handle_response() so truncated/incomplete streaming payloads now produce actionable error messages (with the provider’s incomplete_details) instead of JSON parsing failures, and ensured the dangling await in the OpenAI client path is fixed.
  • Added dedicated coverage in tests/core/test_incomplete_response.py for both the incomplete and the successful response paths.
  • When you pass MCP server dictionaries (with a url key) through tools for Anthropic models, the client now automatically moves them into the mcp_servers array and sets the right beta header, so Anthropics’ MCP integration works without any manual request massaging.
  • Tightened the strict-mode JSON Schema generator for tools: when strict=True, nested object schemas (including those inside $defs) have additionalProperties: false, defaults are stripped, and every property is marked required, matching OpenAI’s schema contract.
  • Backed the change with new tests in tests/core/test_tool_defs.py to ensure tools with and without $defs serialize correctly.
  • Added first-class $defs/definitions support to Tool plus the MCP loader so complex tool schemas with references survive serialization.
  • Tool.for_openai_completions() now automatically includes $defs, rejects schemas that can’t run in strict mode, and sets additionalProperties: false so OpenAI’s strict JSON schema validation passes out of the box.
  • SamplingParams and LLMClient accept reasoning_effort="minimal" (and "none") so you can target the more efficient reasoning tiers exposed by OpenAI without hand-editing objects.
  • Added regression coverage in tests/core/test_reasoning_effort_minimal.py.
  • Message.with_file() / add_file() now accept existing File objects, letting you build up prompts from pre-signed files without duplicates.
  • Added Message.with_remote_file() to turn local bytes/paths into provider-hosted files asynchronously (with provider guard rails), making it easy to keep Anthropic/OpenAI file references in sync when constructing conversations.

Looking for something older? Run git log --oneline or inspect the GitHub release feed—this page will continue to backfill as new releases ship.