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.
0.0.178 · 2026-11-20
Section titled “0.0.178 · 2026-11-20”- New Azure AI Foundry models: Added
gpt-6.2-sol-azure,gpt-6.2-astra-azureandgpt-6.1-terra-azure(priced the same as OpenAI direct), pluskimi-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) andmistral-large-4-azure(deploymentmistral-large-4-latest; $0.70 / $0.07 / $2.10), at Azure’s global prices. All pass the live check intests/one_off/test_azure_foundry_models.py. - Removed retired Azure entries:
grok-4-fast-reasoning-azure,grok-4-fast-non-reasoning-azureandcommand-a-plus-azure(Azure retired Cohere Command A Plus 05-2026 in October).
0.0.177 · 2026-11-20
Section titled “0.0.177 · 2026-11-20”- 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 effortsnonethroughxhighand 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.
0.0.176 · 2026-11-20
Section titled “0.0.176 · 2026-11-20”- Gemini transcription on Vertex:
transcribe_async(..., model="gemini-3.5-transcribe-vertex")usesgemini-3.5-transcribethrough VertexgenerateContentwithVERTEX_API_KEY, followingVERTEX_LOCATIONlike the other Vertex models.timestamps=Trueturns on word timestamps; extra keyword arguments go intoaudioTranscriptionConfig(e.g.diarization=True,customVocabulary=[...]). With diarization, each segment is one speaker turn labeledspk:N. AnyfinishReasonother thanSTOP(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 newTranscriptionResponse.costfield (summed across chunks). - Diarization implies timestamps:
timestampsnow defaults toNone. It is on whendiarization=Trueordiarize=Trueis passed (Vertex or Deepgram) and off otherwise. Passing diarization withtimestamps=FalseraisesValueError. Without word timestamps, Vertex speaker turns had no segments and labels couldn’t be matched across chunks. Deepgram callers who passdiarize=Truenow also get segments. - Overlapping chunks for long audio: When
timestamps=Trueand 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 markedword_timestampsinREGISTRYarewhisper-1,whisper-v3,whisper-v3-turbo,nova-3,nova-2andgemini-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 thanchunk_secondsinto chunks of that length. The default is still 80% of the model’smax_duration. It raisesValueErrorifchunk_secondsis not a positive finite number or exceedsmax_duration. Gemini’smax_durationis 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
MediaRecorderWebM) 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).
- In-memory audio:
0.0.175 · 2026-11-19
Section titled “0.0.175 · 2026-11-19”- Gemini 4 Neon: Added
gemini-4-neon(Gemini API) andgemini-4-neon-vertexat $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 takeslow,medium,highandxhigh, defaults tohigh, mapsnone/minimaltolowandmaxtoxhigh. Temperature and top-p are not sent. On Vertex it answers on theusandeuendpoints but returns 404 onglobal, 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).
0.0.174 · 2026-11-17
Section titled “0.0.174 · 2026-11-17”- GPT-6.2 Sol and GPT-6.2 Astra: Added native OpenAI
gpt-6.2-sol(aliasgpt-6.2) at $2 input / $0.10 cached / $2.50 cache write / $10 output per million tokens, andgpt-6.2-astraat $8 / $0.40 / $10 / $40. Both support vision, JSON, verbosity and reasoning effortslowthroughmax; OpenAI rejectsnoneon 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 aValueError; useuse_responses_api=True. As with other GPT-6 models,maxis sent asxhighon 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 aMessageThreadto 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 withcache="automatic"to also cache each turn. - Normalized stop reasons and error kinds:
APIResponse.stop_reasonis one ofend,tool_use,max_tokens,refusal,content_filter,pauseorotheron every provider (finish_reasonstill holds the provider’s raw value). Error responses getAPIResponse.error_kind:rate_limit,overloaded,context_too_long,auth,invalid_request,content_filter,not_found,timeout,network,serverorother. Unambiguous status codes decide the kind first, so a 429 that mentions tokens is still a rate limit. Both fields survive the local cache, andStopReasonandErrorKindare exported fromlm_deluge. - Tool errors are flagged:
ToolResulthas anis_errorflag, and tool failures (exceptions, unknown tools, bad arguments) set it. Anthropic getsis_error: true, Bedrockstatus: "error", Gemini anerrorresponse, and OpenAI and Mistral anError:prefix. MCP tool results withisErrorare now reported as errors (they used to look like successes). Dict tool results no longer crashfingerprint. - Tool annotations:
Tool(annotations=ToolAnnotations(read_only=True, ...)), also accepted byTool.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 bywith_response, saved byto_log, and reused bystartandrun_agent_loop, which previously dropped it between calls.to_lognow keepsVideoparts (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 typesto_logdoesn’t know now raiseTypeErrorinstead of being dropped.
0.0.173 · 2026-11-13
Section titled “0.0.173 · 2026-11-13”- Gemini 4 Hydrogen: Added
gemini-4-hydrogen(Gemini API) andgemini-4-hydrogen-vertexat $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 thexhighthinking level: it takeslow,medium,highandxhigh, defaults tohigh, mapsnone/minimaltolowandmaxtoxhigh. Temperature and top-p are not sent. On Vertex it answers on theusandeuendpoints but returns 404 onglobal, 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:
decidenow supports Google’s Gemini Decisions API (POST /v1beta/decisions) as a newgeminiwire format, withgemini-decision-1at $0.10 per million input tokens (output is free). It usesGEMINI_API_KEY, sendsinput(text, a content block, or a list of content blocks, so images, audio, video and documents work) and keyed questions, and translatesNoul(true=..., false=...)criteria to Gemini’strue_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.
0.0.172 · 2026-11-10
Section titled “0.0.172 · 2026-11-10”- Claude Fable 5.2: Added native Anthropic
claude-fable-5.2(claude-fable-5-2) plusclaude-fable-5.2-bedrockUS andclaude-fable-5.2-bedrock-globalprofiles 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 runlowthroughmax, 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) andgemini-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 thelow,mediumandhighthinking levels and defaults tomedium;none/minimalmap tolowandxhigh/maxtohigh. Temperature and top-p are not sent. On Vertex it answers on theusandeuendpoints but returns 404 onglobal, the same as Argon.
0.0.171 · 2026-11-07
Section titled “0.0.171 · 2026-11-07”- Thinking Machines Inkling models via Tinker: Added
inkling-2-small,inkling-smallandinkling, served by Tinker’s OpenAI-compatible API (TINKER_API_KEY). They support vision, tool calls, logprobs and reasoning effortsnonethroughxhigh(maxmaps toxhigh). 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 acceptsresponse_formatbut 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_effortnow 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 andtinker://checkpoints accept it; any other model raises aValueErrorwhen 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 sendreasoning_effortonly when you set it and keep yourtemperature, 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.pynow takes the checkpoint fromTINKER_CHECKPOINT. - Null
reasoning_contentignored: OpenAI-compatible chat responses with"reasoning_content": nullproduced an emptyThinkingpart. 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.
0.0.170 · 2026-10-27
Section titled “0.0.170 · 2026-10-27”- GPT-6.1 Terra: Added
gpt-6.1-terraat $1.00 input / $0.05 cached / $5.00 output per million tokens, with vision, JSON, verbosity and reasoning effortsnonethroughmax. Prompts over 272K input tokens are billed at a higher rate by OpenAI; that surcharge is not reflected inresponse.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). maxeffort on OpenAI chat completions: OpenAI acceptsreasoning_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 toapi.openai.comnow sendxhighinstead and warn; the Responses API still sendsmax.
0.0.169 · 2026-10-20
Section titled “0.0.169 · 2026-10-20”- Cloudflare Clef decision models: Added
clef-cf,clef-omni-cfandclef-flash-cf(@cf/cloudflare/clef*), Cloudflare’s decision models that score a state against typed questions instead of generating text. Pass the questions inextra_body["questions"](noulyes/no,choiceandscoretypes, as in Cloudflare’s docs). The state is the conversation text, orextra_body["state"]for structured data. Images in the conversation are sent as embedded data URLs, and clef-omni takes audio viaextra_body["audio"].response.completionis theanswersobject as JSON andraw_responseholds 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_effortis 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 takenonethroughmax; Kimi K2.7-code takes up tomaxbut notnone; GLM-4.7-flash, gpt-oss-120b and Nemotron takelow/medium/high; Qwen3.8-27b’s top level isxhigh, sohighandmaxmap to it.nemotron-3-120b-cfis 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).
0.0.168 · 2026-10-13
Section titled “0.0.168 · 2026-10-13”- Gemini 4 Argon: Added
gemini-4-argon(Gemini API) andgemini-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 thelow,mediumandhighthinking levels and defaults tomedium;none/minimalmap tolowandxhigh/maxtohigh. Temperature and top_p are never sent. Thought-signature injection andmedia_resolutionapply to Gemini 4 as they do to Gemini 3. On Vertex, Argon answers on theusandeuendpoints but returns 404 onglobal(the default), so setVERTEX_LOCATION=usoreu. Live runs passed on the Gemini API and Vertexus/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, butoutput_tokensandcostleft it out, so every Gemini reasoning response was undercharged.output_tokensnow includes thinking tokens, matching OpenAI and Anthropic, andreasoning_tokensstill reports them on their own (tests/core/test_gemini_usage_cost.py). - Breaking: Gemini
-compatmodels 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.
0.0.166 · 2026-10-13
Section titled “0.0.166 · 2026-10-13”- 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-reasoningandgrok-build-0.1onapi.x.ai(GROK_API_KEY). Grok 4.3–4.7 sendreasoning_effortand supportxhigh; onlygrok-4.3acceptsnone. Grok 4.20 and Build 0.1 rejectreasoning_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
backgroundunless enabled: The Responses request builder always sent"background": false, which xAI rejects with a 400. The field is now sent only whenbackground=True; OpenAI behavior is unchanged.
0.0.165 · 2026-10-12
Section titled “0.0.165 · 2026-10-12”- Responses settings are no longer parsed as reasoning: The top-level
reasoningobject in an OpenAI Responses reply echoes the request settings (e.g.{"effort": "high", "summary": "detailed"}), but the parser turned itssummaryvalue into aThinkingpart 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, andAPIResponse.thinkingcarries their summary text (tests/core/test_responses_reasoning_settings.py).
0.0.164 · 2026-10-11
Section titled “0.0.164 · 2026-10-11”- Streaming inside agent loops:
run_agent_loop(..., on_text_delta=callback)streams each round and callscallbackwithTextDeltaEvent(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, includingbackground=Truewith 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 userequest_timeoutas 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) andgemini-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.completionno longer includes them, and they are replayed to Gemini asthought: trueparts with their signatures (previously as visible[Thinking: ...]text), per Google’s guidance to return model turns as received. Live runs passed ongemini-3.8-flashandgemini-3.8-flash-vertex(tests/one_off/test_gemini_thought_replay_live.py). - One-hour prompt cache:
LLMClient(cache_ttl="1h")setsttl: "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_tokensrecords one-hour writes, which are costed at 2x base input.
0.0.163 · 2026-10-11
Section titled “0.0.163 · 2026-10-11”- Gemini tool schemas use
parametersJsonSchema: Gemini and Vertex tools are now sent as full JSON Schema instead of Google’s restricted OpenAPIparameters, so MCP discriminators (const),$refs, defaults and dictionary schemas are preserved. Previously Vertex rejected any tool whose schema usedconstwith 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 asfunctionResponse.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 asmodel),functionResponse.nameis 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 ongemini-3.8-flash-vertexwith 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).
0.0.162 · 2026-10-11
Section titled “0.0.162 · 2026-10-11”- Ordered fallback chains:
fallback_modelsis 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 ismax(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 withoutfallback_modelskeep the existing random multi-model retry behavior. - Fallbacks inside agent loops: With
fallback_modelsset, eachrun_agent_loopround 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 withuse_responses_api=Falsefor 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.
0.0.161 · 2026-10-07
Section titled “0.0.161 · 2026-10-07”- Claude Haiku 5.5: Added
claude-5.5-haiku(claude-haiku-5-5) on the Anthropic API, plusclaude-5.5-haiku-bedrock(us.anthropic.claude-haiku-5-5) andclaude-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 (includingxhigh/max);reasoning_effort="none"sendsthinking: disabled, which is rejected atxhigh/maxeffort.thinking_budgetis translated to effort,temperature/top_pare omitted, assistant prefill is rejected, andmax_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).
0.0.160 · 2026-10-07
Section titled “0.0.160 · 2026-10-07”- OpenAI Decisions (
gpt-6-luna):lm_deluge.decidenow supports OpenAI’s betaPOST /v1/decisionsendpoint as modelgpt-6-luna(OPENAI_API_KEY, $0.10 per million input tokens, no output charge). Questions are still written withNoul/Choice/Scoreand translated to OpenAI’s format: a namedquestionslist withpredicate,choices(value/description) andlevels(label/description). Answers come back as the sameNoulAnswer/ChoiceAnswer/ScoreAnswertypes, so code works unchanged across Jev and Luna. Text states are sent asinputunchanged, a list of user messages passes through (use this forinput_imagedata URLs), and other JSON is sent as a string. OpenAI predicates have no true/false criteria, soNoul(true=..., false=...)criteria are appended to the instructions.Predicateis an alias ofNoul, and raw dicts may use"type": "predicate".register_decision_provider()takes a newformatargument ("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 providerinstead. 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 thex-goog-api-keyheader 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).
0.0.159 · 2026-10-02
Section titled “0.0.159 · 2026-10-02”- Gemini on Vertex AI: New
-vertexmodels send Gemini requests to Vertex AI under Google Cloud terms instead of the Gemini Developer API. Auth is a Google Cloud API key inVERTEX_API_KEY, sent in thex-goog-api-keyheader; Vertex derives the project from the key.VERTEX_LOCATIONpicks the endpoint:global(default),us/eumulti-region (aiplatform.{loc}.rep.googleapis.com), or a region such asus-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: theusendpoint lacks the 2.5 models,gemini-3-flash-preview, andgemini-3.1-pro-preview. Live text, image, PDF, and JSON-mode checks passed onglobalandus(tests/one_off/test_vertex_live.py). - New Gemini models: Added
gemini-3.1-pro-preview($2 / $0.20 cached / $12 under 200k tokens) andgemini-3.5-flash-lite($0.30 / $0.03 cached / $2.50), plusgemini-3.5-flash-lite-compat. 3.1 Pro now sendsreasoning_effort="medium"asthinkingLevel: medium; it was previously raised tohigh. - Retired Gemini models removed:
gemini-2.0-flash,gemini-2.0-flash-lite(and their-compatentries), andgemini-3-pro-previewnow return 404 from Google and have been removed. Tests and docs now usegemini-2.5-flash-liteandgemini-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, andsandboxextras now requireurllib3>=2.8.0(chunked-read memory, HTTPS-proxy TLS, and deflate-loop advisories), and the lockfile movesanyioto 4.14.2 (TLS host-name encoding advisory). The docs site pinsdevalue5.9.3 andundici8.10.2, and the Cloudflare sandbox worker pinsundici7.29.1.
0.0.158 · 2026-10-01
Section titled “0.0.158 · 2026-10-01”- 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.
0.0.157 · 2026-10-01
Section titled “0.0.157 · 2026-10-01”- Azure AI Foundry models: Added
-azureentries 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 yourAZURE_URLresource. 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-6alias, which previously slipped past the check (tests/core/test_chat_tools_reasoning_guard.py). - Decision models (TypeSafe Jev): New
lm_deluge.decidemodule for decision APIs, which return typed answers instead of text. Pass astate(text or JSON) and a map of questions built withNoul(yes/no probability),Choice(one of up to 255 unordered options), orScore(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()anddecide_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-openrouterandjev-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 withregister_decision_provider()andregister_decision_model(). Every model passed a live check (tests/one_off/test_decide_live.py).
0.0.156 · 2026-09-29
Section titled “0.0.156 · 2026-09-29”- Claude Sonnet 5.5: Added native Anthropic
claude-5.5-sonnet(claude-sonnet-5-5) and theclaude-5.5-sonnet-bedrock-globalprofile at $2 input / $0.20 cache read / $2.50 cache write / $10 output per million tokens, withxhigh/maxeffort. AWS offers only the Global profile;us.anthropic.claude-sonnet-5-5is rejected as an invalid identifier. Sonnet 5.5 rejects disabled thinking, soreasoning_effort="none"and zero thinking budgets are sent asbetween_tools(efforthighor below;xhigh/maxfail fast). Forcedtool_choicenow fails fast, as doesmax_turns_warning="ephemeral". The direct API sends thinking-binding controls when thinking is adaptive, andtask_budgetis 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(aliasgpt-6.1, $2 / $0.10 cached / $2.50 cache write / $10) plusgpt-6.1-sol-bedrockUS andgpt-6.1-sol-bedrock-globalprofiles over Chat Completions and Responses. It supportslowthroughmaxreasoning;noneis mapped tolowwith a warning. Chat Completions with function tools fails fast, so useuse_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).
0.0.155 · 2026-09-28
Section titled “0.0.155 · 2026-09-28”- 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 withValueError: 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.
0.0.154 · 2026-09-26
Section titled “0.0.154 · 2026-09-26”- Gemini media resolution: Send global
media_resolutionas the uppercase enum required by Gemini’sgenerationConfig.mediaResolution, fixing requests that set this option. Added a live image test that passed against Gemini 3.8 Flash withmedia_resolution_high.
0.0.153 · 2026-09-23
Section titled “0.0.153 · 2026-09-23”- 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 Responsesstart()auto-loop, accepton_messagefor each appended assistant and tool message, and returnAPIResponse.trajectoryandloop_stop_reason. The existingon_round_completecallback remains available.run_agent_loopkeeps 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, andon_messagecallbacks, 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. Responsesstart()auto-loops continue to omit warnings. If the last allowed response requests local tools, those tools remain unexecuted; the stop reason is"max_rounds".
0.0.152 · 2026-09-23
Section titled “0.0.152 · 2026-09-23”- Claude Opus 5.5: Added native Anthropic
claude-5.5-opus(claude-opus-5-5) plusclaude-5.5-opus-bedrockUS andclaude-5.5-opus-bedrock-globalprofiles at $4 input / $0.20 cache read / $5 cache write / $20 output per million tokens, with adaptive summarized thinking andxhigh/maxeffort. Opus 5.5’s thinking is always on, soreasoning_effort="none", zero thinking budgets, and disabled thinking now fail fast, as does forcedtool_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(aliasgpt-6, $2 / $0.20 cached / $10) andgpt-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 supportnonethroughmaxreasoning, 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-openrouterfor Inception’sinception/mercury-2.5, with structured output, reasoning, and $0.04 / $0.004 cached / $0.15 pricing (4f2f126).
0.0.151 · 2026-09-09
Section titled “0.0.151 · 2026-09-09”- 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-lunanow prices at $0.20 input / $0.02 cached / $1.20 output per million tokens, andgpt-5.6-terraat $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.
0.0.150 · 2026-09-07
Section titled “0.0.150 · 2026-09-07”- GPT-6 Astra: Added native OpenAI
gpt-6-astraplus the advertisedgpt-6-astra-bedrockUS andgpt-6-astra-bedrock-globalRuntime profiles. Astra supports Chat Completions and Responses, image input,lowthroughmaxreasoning (with unsupportednonenormalized tolow), 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/maxeffort, 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 withthinking_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.3andmuse-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-commitinstallation with workspace-managedprek, moved Ruff, Pyright, ty, build, and release tools into the uv dev group, made hooks useuv run --no-sync, enforced a three-day minimum dependency age, and established a clean whole-repository Ruff/Pyright/ty baseline (8a21fd1,5fe8523).
0.0.149 · 2026-08-30
Section titled “0.0.149 · 2026-08-30”- GLM 5.3 on Cloudflare Workers AI: Added
glm-5.3-cffor 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-openrouterprofile with structured output,low/high/maxreasoning effort, vision support, baseline pricing metadata, and regression coverage (af208f9).
0.0.148 · 2026-08-26
Section titled “0.0.148 · 2026-08-26”- 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
-cfmodel IDs (4acf72a). - Cloudflare Moondream support: Added a model-specific
/ai/runadapter 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
maxeffort support and regression coverage (27551e8).
0.0.147 · 2026-08-22
Section titled “0.0.147 · 2026-08-22”- 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).
0.0.146 · 2026-08-11
Section titled “0.0.146 · 2026-08-11”- Observable Responses agent loop:
start()andstart_nowait()acceptmax_rounds(replacing the hardcoded 100-round limit, validated>= 1) and anon_messageasync callback that receives eachMessageas 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.APIResponsegains additivetrajectory(the full multi-roundConversation, previously discarded) andloop_stop_reason("no_tool_calls","max_rounds", or"error") fields. Trajectories preserve inputMessage.extraandmodel_used, and record the responding model per round. Whenmax_roundsis reached with pending tool calls, the calls are no longer executed (their results could never be consumed). Therun_agent_loopResponses-mode guard is unchanged. SeeAGENT_LOOP_STREAMING_SPEC.md. - Lossless conversation logs (v2):
to_log()now defaults tolossless=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,ToolResultmetadata and files,Message.extra, and media bytes. A lossless round-trip reproduces identicalto_openai_responses()input items.lossless=Falseopts into compact logs that drop only large opaque payloads (media bytes, raw reasoning, raw response items) with typed omission markers.preserve_mediais deprecated but honored (True→ lossless,False→ compact) with aDeprecationWarning.from_log()loads v1 logs, v2 lossless, and v2 compact payloads best-effort without raising.Conversation.to_log/from_lognow delegate to theMessage-level serializers instead of maintaining a second copy. SeeLOG_V2_SPEC.md.
0.0.145 · 2026-08-11
Section titled “0.0.145 · 2026-08-11”- Meta Muse Spark models: Replaced the retired direct Meta Llama catalog with
muse-spark-1.1,muse-spark-1.2, andmuse-spark-1.2-contributorthrough the Meta Model API. The new profiles support images, structured output, reasoning, Chat Completions, and the Responses API. Meta credentials can now come from eitherMETA_API_KEYorMODEL_API_KEY, withMETA_API_KEYtaking precedence. Documentation calls out the contributor model’s training-data terms. - Stateless Responses history: Added
stateless_responsestoLLMClientand request contexts. Stateless requests setstore=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-openrouterunreachable. - 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.
0.0.144 · 2026-07-25
Section titled “0.0.144 · 2026-07-25”- GPT-5.6 models: Added OpenAI
gpt-5.6-sol,gpt-5.6-terra, andgpt-5.6-luna, with thegpt-5.6alias routing to Sol. GPT-5.6 supports Responses API generation, image input, structured outputs,xhighandmaxreasoning efforts, explicitreasoning_effort="none", verbosity, and cache-write-aware pricing metadata. Responses requests now mergeextra_body["reasoning"], enabling small passthroughs such as{ "mode": "pro" }without adding a separate client option. Reasoning-effort normalization now uses model capability metadata, acceptsmaxthroughout the public client and proxy types, safely maps unsupported values for older OpenAI-compatible, Gemini, and Anthropic models, and preserves canonical model IDs such asgpt-5.1-codex-maxahead of suffix parsing. Live validation passed for Sol, Terra, and Luna through thelm-deluge1Password environment. - Claude Opus 5: Added native Anthropic
claude-5-opussupport plusclaude-5-opus-bedrockandclaude-5-opus-bedrock-globalprofiles. Opus 5 uses adaptive summarized thinking,xhigh/maxeffort, task budgets, sampling-parameter stripping, and explicit disabled-thinking handling forreasoning_effort="none"andthinking_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_configfield, 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
LambdaMicroVMSandboxand content-addressedLambdaMicroVMImageBuilder, 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.txtwith 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.
0.0.143 · 2026-07-08
Section titled “0.0.143 · 2026-07-08”- Bedrock now forwards thinking/effort settings: The Bedrock Anthropic request builder previously ignored
thinking_budget,reasoning_effort, andglobal_effortentirely — 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 identicalthinkingandoutput_configpayloads: adaptive thinking + effort on Claude 4.6+,budget_tokens(with themax_tokensbump and temperature pinning) on older reasoning models, and effort-to-budget translation. Models without extended thinking omit thethinkingfield, and Claude 4.6 on Bedrock drops non-defaulttemperaturewhen 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 themax_new_tokensbudget 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 passreasoning_effort="none"or raisemax_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.
0.0.142 · 2026-07-02
Section titled “0.0.142 · 2026-07-02”- Claude Sonnet 5: Added
claude-5-sonnetfor the Anthropic API withclaude-sonnet-5alias support, adaptive thinking defaults, removed manual thinking-budget translation, sampling-parameter stripping, assistant-prefill blocking, and focused request/live coverage. Added Bedrock profilesclaude-5-sonnet-bedrock(us.anthropic.claude-sonnet-5) andclaude-5-sonnet-bedrock-global(global.anthropic.claude-sonnet-5). Live validation passed throughbop 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 clearuse_responses_api=Trueerror.
0.0.141 · 2026-06-12
Section titled “0.0.141 · 2026-06-12”- Gemini 3.1 Flash-Lite GA: Added
gemini-3.1-flash-litefor the native Gemini API and updatedgemini-3.1-flash-lite-compatto 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.
0.0.140 · 2026-05-29
Section titled “0.0.140 · 2026-05-29”- Claude Opus 4.8: Added
claude-4.8-opusfor the Anthropic API plusclaude-4.8-opus-bedrockandclaude-4.8-opus-bedrock-globalfor 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 excludingme-south-1, which timed out empirically. - Claude Opus 4.7 and Bedrock global profiles: Added
claude-4.7-opusand 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-flashand OpenAI-compatible variant), GPT-5.5, DeepSeek V4 Pro/Flash, Kimi K2.6 through both Moonshot and OpenRouter, NVIDIA hosted NIM models/dynamicnvidia:model IDs, Perceptron (perceptron-mk1,isaac-0.2-2b,sonar) with image/video support, and a native Moondream provider plusMoondreamClient. - Spatial utilities: Refactored
lm_deluge.util.spatialinto 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-aws4authwith 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, andrequests-aws4authfrom core/runtime dependency paths. Library code and tests now expect credentials from the process environment instead of loading.envfiles implicitly, reducing surprise secret loading in production. - Prompt media and URL handling: Added a
Videoprompt part and shared async URL byte-fetching helpers so providers that require inline media can fetch and encode images/video without therequestsdependency. - Rate-limit defaults: Raised the default token-per-minute budget from
100_000to500_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.
0.0.139 · 2026-04-23
Section titled “0.0.139 · 2026-04-23”- NVIDIA provider: Added a first-class NVIDIA hosted NIM provider using
https://integrate.api.nvidia.com/v1withNVIDIA_API_KEY. Includes curated registry entries for models such asminimax-m2.7-nvidia,deepseek-3.2-nvidia,kimi-k2.5-nvidia,glm-5.1-nvidia,gpt-oss-120b-nvidia, andsarvam-m-nvidia. - Dynamic NVIDIA catalog models: You can now use arbitrary hosted catalog slugs via the
nvidia:prefix, for examplenvidia:z-ai/glm-5.1ornvidia:openai/gpt-oss-120b, without waiting for a registry update. - OpenAI-compatible passthrough fix:
extra_bodyis now merged into OpenAI-compatible chat-completions requests, which is required for provider-specific knobs like NVIDIA’schat_template_kwargs.
0.0.138 · 2026-04-08
Section titled “0.0.138 · 2026-04-08”- 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_TOKENandCLOUDFLARE_ACCOUNT_IDenv vars. Model IDs are suffixed-cf(e.g.kimi-k2.5-cf,llama-4-scout-cf). - Gemini batch processing: Added
submit_batches_geminifor Gemini’s native batch API with file upload, polling, and result retrieval. Integrates with the existingsubmit_batch_job/wait_for_batch_jobclient methods. - GPT-5.4 mini and nano: Added
gpt-5.4-mini($0.75/$4.50) andgpt-5.4-nano($0.20/$1.25) to the OpenAI registry with xhigh reasoning and verbosity support. - Arcee Trinity models: Added
trinity-large-thinkingandtrinity-large-previewreasoning models from Arcee AI.
0.0.136 · 2026-03-17
Section titled “0.0.136 · 2026-03-17”- GPT-5.4 mini and nano: Added
gpt-5.4-miniandgpt-5.4-nanoto the OpenAI registry with the same reasoning and capability handling asgpt-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.
0.0.135 · 2026-03-09
Section titled “0.0.135 · 2026-03-09”- Audio file type inference: When passing raw
bytestotranscribe_async/transcribe_sync, the library now usesfiletypeto detect the actual audio format (mp3, ogg, flac, etc.) instead of blindly assuming WAV. A newAudioSourcetype alias also accepts(bytes, filename)tuples so callers can preserve the original format and extension when the bytes come from an in-memory source.
0.0.133 · 2026-03-08
Section titled “0.0.133 · 2026-03-08”- Audio transcription: New
lm_deluge.transcribemodule — a lightweight, standalone transcription client (likeembed). 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. Usetranscribe_async/transcribe_syncwith file paths,Pathobjects, 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 ofTranscriptionSegmentwith 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).
0.0.131 · 2026-03-05
Section titled “0.0.131 · 2026-03-05”- GPT-5.4 models: Added
gpt-5.4($2.50/$15) andgpt-5.4-pro($30/$180) — OpenAI’s latest reasoning models with image support andxhighreasoning effort. - Verbosity parameter: New
verbosityparam onLLMClientandSamplingParamsas a unified alias for output effort control. Maps to OpenAI’s nativeverbosityAPI field (low/medium/high) on GPT-5+ models, and to Anthropic’soutput_config.efforton Claude 4.5+/4.6 models. Cross-provider values are normalized automatically (e.g."max"→"high"for OpenAI with a warning).verbosityandglobal_effortstay synced — setting one sets the other, and providing conflicting values raisesValueError. - Lazy effort defaults:
global_effortno longer defaults to"high"inSamplingParams. 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 viamaybe_warninstead 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
verbosityfield in chat completion requests.
0.0.130 · 2026-03-03
Section titled “0.0.130 · 2026-03-03”- Session sharing: Batch requests (
process_batch,batch_agent_loop) now share a singleaiohttp.ClientSessionacross all tasks, reducing connection overhead and improving throughput for large batches. The connector pool is sized with headroom abovemax_concurrent_requestsso aiohttp never becomes the hidden bottleneck. - Improved rate-limit dispatch: Replaced
_wait_for_capacitywith_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_batchandbatch_agent_loopnow usereturn_exceptions=Trueinasyncio.gather, so a single failing task no longer cancels all siblings. Exceptions are converted to errorAPIResponseobjects, giving callers a uniform list back.
0.0.129 · 2026-03-03
Section titled “0.0.129 · 2026-03-03”- Gemini 3.1 Flash Lite: Added
gemini-3.1-flash-lite-preview(native Gemini API) andgemini-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).
0.0.128 · 2026-03-03
Section titled “0.0.128 · 2026-03-03”- Dynamic-filtering web search tool: Added
web_search_tool_dynamic()for Anthropic’s newweb_search_20260209tool, 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 — raisesValueErrorfor unsupported models. The API auto-injects the code execution tool, so you don’t need to pass it separately. The existingweb_search_tool()(web_search_20250305) remains available for all models. user_locationfor web search: Bothweb_search_tool()andweb_search_tool_dynamic()now accept auser_locationdict to localize search results by city, region, country, and timezone.- Graceful
ClientOSErrorhandling:aiohttp.ClientOSError(connection reset, broken pipe, etc.) now returns a structured errorAPIResponseinstead of an unhandled exception traceback.
0.0.127 · 2026-03-02
Section titled “0.0.127 · 2026-03-02”- 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, orAWS_BEARER_TOKEN_BEDROCKto use simple Bearer-token auth — norequests-aws4authdependency needed. When both an API key and IAM credentials are present, the API key takes precedence. Auth logic consolidated into a sharedbedrock_authmodule, 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 viaenable_python, auto-install of thejust-bashCLI, background process tracking, and the samebash/list_processestool interface as other sandboxes. See Tool Use for usage.
0.0.126 · 2026-02-27
Section titled “0.0.126 · 2026-02-27”- Inception (Mercury 2) support: Added
mercury-2model from Inception Labs — a fast diffusion-based LLM with 128K context. Uses the OpenAI-compatible endpoint atapi.inceptionlabs.ai. Supports tool calling, structured outputs, andreasoning_effortwith Mercury-specific mapping ("none"/"minimal"→"instant"mode for near-zero-latency responses). RequiresINCEPTION_API_KEYenv var.
0.0.125 · 2026-02-27
Section titled “0.0.125 · 2026-02-27”- 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.
0.0.124 · 2026-02-26
Section titled “0.0.124 · 2026-02-26”- Automatic prompt caching: New
cache="automatic"pattern that sets the top-levelcache_controlflag on Anthropic requests, letting the provider decide what to cache instead of manually specifying cache breakpoints. Supported inLLMClient,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 ifautomaticis requested. - PybubbleSandbox: New Linux sandbox backed by pybubble (bubblewrap). Provides filesystem and process isolation without Docker — just needs
bwrapinstalled. Supports configurable network access (network_access,outbound_access,allow_host_loopback), optional fallback to host-network sharing in restricted runtimes (requiresallow_host_loopback=True), background process tracking, and the samebash/list_processestool interface as other sandboxes. Requires thepybubbledependency and Linux. See Tool Use for usage.
0.0.123 · 2026-02-25
Section titled “0.0.123 · 2026-02-25”- Agent loop final-turn warning: When
run_agent_loopreaches 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, makingSubAgentManagerand agent loops in general more reliable.
0.0.122 · 2026-02-24
Section titled “0.0.122 · 2026-02-24”- New
VectorDBManagerprefab tool: In-process vector database for agents, backed by numpy with brute-force cosine similarity search. Exposesinsert,search,get,delete,count, andlistcommands. Supports a pluggableVectorDBBackendABC so you can swap in heavier stores (USearch, turbopuffer, etc.) without changing tool wiring. Ships withInProcessVectorDBfor small-to-medium collections (~100k vectors). Available via the newvector_dboptional 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-afterandretry-after-msresponse headers on 429s and use the server-suggested cooldown duration instead of a fixed pause. Capped atMAX_COOLDOWN_SECONDSfor 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-rsversion: Changed from pinned==0.1.1to>=0.1.1.
0.0.120 · 2026-02-20
Section titled “0.0.120 · 2026-02-20”- New
SqliteManagerprefab tool: Schema-first SQLite tool for agents — supportslist_tables,describe_table, andquerycommands with progressive disclosure. Build a DB from a list-of-dicts viaSqliteManager.from_dicts()(auto-infers column types including JSON columns) or point at an existing.dbfile. 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: Removedclaude-3.5-haiku(claude-3-5-haiku-20241022) from the model registry — the model has been retired by Anthropic. Useclaude-4.5-haikuinstead. Remaining references to3.5-haikuin examples and tests have been updated to4.5-haiku.
0.0.119 · 2026-02-19
Section titled “0.0.119 · 2026-02-19”- Embedding rate limiting:
embed_parallel_asyncnow acceptsmax_requests_per_minuteandmax_tokens_per_minuteparameters, using the sameStatusTrackercapacity system asLLMClient. Rate-limit (429) responses trigger automatic cooldown. Previously these were accepted as**kwargsand leaked into the API payload, causing request failures. - Deterministic test suite: Added
tests/core/test_embed.pywith 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.
0.0.118 · 2026-02-19
Section titled “0.0.118 · 2026-02-19”- Embeddings rewrite: Completely rewrote
lm_deluge.embed— the old implementation was broken (crashed immediately due to a serialization bug). The new module usesasyncio.gather+Semaphorefor 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
EmbeddingResponseincludes atokens_usedfield. Updated pricing for all models. embed_synchelper: 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.
0.0.116 · 2026-02-17
Section titled “0.0.116 · 2026-02-17”- 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 explicitthinking_budgetis set. Explicitbudget_tokensstill works but emits a deprecation warning. - GA effort parameter for Sonnet 4.6:
global_effortandreasoning_effortnow map tooutput_config.effortfor Sonnet 4.6 (previously only Opus 4.5/4.6). The-low,-medium,-highmodel 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
aliaseslist so common alternative names resolve to the same model. For example,claude-sonnet-4-6(the API name) now resolves toclaude-4.6-sonnet, andclaude-haiku-4.5resolves toclaude-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.
0.0.115 · 2026-02-12
Section titled “0.0.115 · 2026-02-12”- File and image URL passthrough:
FileandImageobjects now accept HTTP(S) URLs asdataand 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_filedeserialization:Conversation.from_openai_chat()now correctly parsesinput_fileblocks wherefile_url,file_data, andfilenameare at the top level of the block (as emitted by the Responses API), not nested inside a sub-dict.
0.0.114 · 2026-02-12
Section titled “0.0.114 · 2026-02-12”- Dropped
tiktokendependency: Removedtiktokenfrom project dependencies (pyproject.tomlandrequirements.txt) and switchedConversation.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.pyto 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.pythat usesdotenv, callsgpt-5.2withuse_responses_api=True, and verifies non-zero usage/cost plus exact usage-to-cost reconciliation against model pricing.
- Extended
- Test cleanup: Minor formatting/type-hint cleanup in
tests/models/test_xhigh_reasoning.pyto keep lint/type checks clean.
0.0.113 · 2026-02-11
Section titled “0.0.113 · 2026-02-11”- 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’sdescriptionso the model still sees the intent. This applies toTool.for_anthropic()(both strict and non-strict modes) and to raw dict tool definitions passed throughtools=, including nestedcustomtool schemas. Caller-provided dicts are never mutated.
0.0.112 · 2026-02-09
Section titled “0.0.112 · 2026-02-09”- JSON healing: escape unescaped interior quotes:
load_jsonnow 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.
0.0.111 · 2026-02-08
Section titled “0.0.111 · 2026-02-08”- Immediate error on impossible token budget: Requests whose estimated token count (prompt +
max_new_tokens) exceedsmax_tokens_per_minutenow raise aValueErrorimmediately instead of hanging forever waiting for capacity that can never be granted.
0.0.110 · 2026-02-07
Section titled “0.0.110 · 2026-02-07”- Added full Claude Opus 4.6 request support in the Anthropic builder: adaptive thinking (
thinking: {type: "adaptive"}), 128k-style large-output compatibility plumbing,inference_geopassthrough, and Opus 4.6 assistant-prefill rejection behavior. - Migrated Opus effort handling to GA shape for both
claude-4.5-opusandclaude-4.6-opusviaoutput_config.effort(including support forglobal_effort="max"), removing reliance on the old effort beta header path. - Added compatibility passthrough for deprecated Anthropic
output_formatby mapping it tooutput_config.format, while preserving nativeoutput_config.formatstructured outputs. - Expanded proxy/server Anthropic compatibility models + adapters to parse/forward
output_config, deprecatedoutput_format, andinference_geo. - Added/updated regression coverage in
tests/models/test_anthropic_thinking_budget.py,tests/core/test_server_adapters.py, andtests/core/test_new_llmclient_api.py. - Added live network validation in
tests/one_off/test_anthropic_opus_46_features_live.py(loads.envviadotenv.load_dotenv()), covering Opus 4.5/4.6 effort, adaptive thinking,inference_geo, deprecatedoutput_format, and prefill rejection.
0.0.108 · 2026-02-04
Section titled “0.0.108 · 2026-02-04”- OpenAI Responses API now supports images in tool results: Tool results containing
[Text(...), Image(...)]lists are now properly serialized as arrays withinput_textandinput_imagetypes, 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 thedetailfield for controlling image processing fidelity.
0.0.107 · 2026-02-04
Section titled “0.0.107 · 2026-02-04”- 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 acceptshttp(s)URLs to preload a workspace from a remote zip file. - Curl tool jq piping:
get_curl_tool()now allows piping output tojqfor JSON filtering while continuing to block other shell pipes.
0.0.105 · 2026-02-02
Section titled “0.0.105 · 2026-02-02”- 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 withFilesystemManagerfor agents that need to fetch data and read/write files. See Tool Use for usage. - Verbose mode for agent loops: Pass
verbose=Truetorun_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.
0.0.104 · 2026-02-02
Section titled “0.0.104 · 2026-02-02”- Lazy imports for prefab tools: The
lm_deluge.tool.prefabmodule now uses lazy imports, so importing one tool (e.g.,ModalSandbox) no longer requires dependencies for unrelated tools (e.g.,lenlp/tantivyforFullTextSearchManager). Each tool’s dependencies are only loaded when that specific tool is used.
0.0.103 · 2026-01-31
Section titled “0.0.103 · 2026-01-31”- 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 useprefer_model="last"for multi-turn conversations to stick to whichever model was used previously (survives serialization viaconv.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, andkimi-k2.5-openroutervia 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).
0.0.102 · 2026-01-29
Section titled “0.0.102 · 2026-01-29”- Added ZAI (Zhipu AI) models:
glm-4.7,glm-4.7-flash,glm-4.6,glm-4.5, andglm-4.5-airvia the ZAI API with Anthropic-compatible spec. - Replaced
fastmcpandmcpdependencies 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.
0.0.101 · 2026-01-14
Section titled “0.0.101 · 2026-01-14”- 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.
0.0.100 · 2026-01-10
Section titled “0.0.100 · 2026-01-10”- Fixed OpenAI Responses API handling of reasoning models with tools: reasoning content (summary blocks) now correctly serializes as
reasoningtype items with propersummaryfield structure, fixing issues where tool calls would fail on models likeo4-mini. - Added test coverage for Responses API reasoning + tool interactions in
tests/core/test_openai_responses_reasoning_tools.py.
0.0.99 · 2026-01-10
Section titled “0.0.99 · 2026-01-10”Bugfixes for OpenAI responses API + client-side tools.
0.0.98 · 2026-01-10
Section titled “0.0.98 · 2026-01-10”- OpenAI Responses API now supports client-side tool execution: when you pass
Toolobjects (or local MCP servers withforce_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) inToolCall.extra_bodyfor function calls, MCP calls, web search, and other built-in tools, making it easier to reconstruct the exact request format when needed. Thinkingparts from Responses API now includesummaryandraw_payloadfields for richer introspection.- Agent loops (
run_agent_loop) now raiseNotImplementedErrorwhenuse_responses_api=Trueto prevent confusion—usestart()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.
0.0.97 · 2026-01-10
Section titled “0.0.97 · 2026-01-10”- Fixed GPT-5 reasoning effort defaults: GPT-5 models no longer special-case to
minimaleffort when none is specified; they now follow the standardlowdefault 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) andgpt-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.
0.0.96 · 2026-01-07
Section titled “0.0.96 · 2026-01-07”- Agent loops now accept an
on_round_completecallback onrun_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()(plusTool.find()) for runningToolCalls locally and collecting(tool_call_id, result)tuples. - Conversation ergonomics:
Conversation.with_tool_results()for adding tool outputs in bulk, andwith_tool_result()/Message.with_tool_result()now accept dict results. - Added core test coverage for agent loop callbacks and the new tool helper utilities.
0.0.95 · 2026-01-06
Section titled “0.0.95 · 2026-01-06”- Added
PhilipsHueManagerprefab (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.heartbeatstarter for running a model on a schedule. - Added a one-off live test for
PhilipsHueManager(tests/one_off/test_philips_hue_live.py).
0.0.94 · 2026-01-01
Section titled “0.0.94 · 2026-01-01”- Added
get_response_files()tolm_deluge.util.anthropic_filesto download Anthropic response files in-memory (optionally resolving real filenames via metadata). - Anthropic requests now populate
APIResponse.finish_reasonfromstop_reason. Message.user(..., file=...)now accepts aFileobject directly.- Added a one-off regression test for Anthropic
finish_reasonparsing (tests/one_off/test_anthropic_finish_reason.py).
0.0.93 · 2026-01-01
Section titled “0.0.93 · 2026-01-01”- Added Anthropic Skills support: pass
skills=[Skill(...)]tostart(),run_agent_loop(), or batch methods to use Anthropic’s built-in skills (xlsx, pptx) or custom uploaded skills. - New
Skillclass (lm_deluge.Skill) for defining skills withtype(anthropic/custom),skill_id, andversion. - 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. ToolResultnow includes afilesfield for code execution outputs, andContainerFileTypedDict for file metadata.- Container ID reuse:
container_idparameter onstart()/run_agent_loop()and automatic reuse within agent loops to maintain state across turns. - Skills documentation page added to the docs site.
0.0.92 · 2026-01-01
Section titled “0.0.92 · 2026-01-01”- 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_URLlookup, 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.
0.0.91 · 2025-12-28
Section titled “0.0.91 · 2025-12-28”- CLI overhaul: installable
delugeanddeluge-serverentrypoints withlist,run, andagentsubcommands, model filtering, JSON output, stdin/file inputs, image prompts, and MCP/prefab-enabled agent loops. - Model registry now tracks provider +
supports_imagesmetadata and exposesfind_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/userare now instance methods (useConversation().system(...).user(...)), addedConversation.ai, and prompt primitives (File,Image, etc.) live underlm_deluge.promptwith top-level re-exports;RequestContextmoved tolm_deluge.api_requests.context. - MCP tooling adds
MCPServer.from_mcp_configfor Claude Desktop config parsing, andMCPServeris now exported at the top level. - Dependencies trimmed: removed numpy/pandas; embedding
stack_results()now returns Python lists only; logprob utilities usemath. - Config cleanup: dropped
SamplingParams.to_vllmandComputerUseParams. - 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).
0.0.90 · 2025-12-26
Section titled “0.0.90 · 2025-12-26”- Proxy server adds configurable model policy (allowlists, defaults, alias routes) with CLI/config support, optional request/provider logging, forwarded
anthropic-betaheaders, 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_logandfrom_logcan optionally preserve image/file bytes (base64) for round-trip serialization. - OpenRouter catalog expands with
minimax-m2.1plus freegpt-oss-20b/gpt-oss-120bentries. - Provider compatibility fixes: Anthropic batch submission now posts JSON payloads (no temp JSONL), and Gemini tool schemas strip
additionalProperties.
0.0.89 · 2025-12-17
Section titled “0.0.89 · 2025-12-17”- Added
gemini-3-flash-previewmodel with v1alpha API endpoint and pricing ($0.50/$3.0 per million tokens input/output). - Gemini 3 Flash supports
minimalandmediumthinking levels directly, unlike Gemini 3 Pro which only supportslowandhigh. The request builder now detects Flash vs Pro and passes the appropriatethinkingLevelvalues. - Added test coverage for Flash-specific thinking levels in
tests/models/test_gemini_3_thinking_level.py.
0.0.88 · 2025-12-15
Section titled “0.0.88 · 2025-12-15”- New Recursive Language Model (RLM) manager/pipeline brings a tool-driven REPL for very long contexts, with persistent state, guarded imports,
lm()fan-out, andfinal()/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/fetchtools) 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) andsandbox(modal, daytona-sdk, docker) so heavyweight deps are opt-in; removed the unuseddeduplicate_strategyparameter from the FTS API.
0.0.87 · 2025-12-11
Section titled “0.0.87 · 2025-12-11”- Added
xhighreasoning 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 tohighwith a warning. - Model name suffixes now support
-xhigh(e.g.,gpt-5.2-xhigh) alongside the existing-low,-medium,-high,-minimal, and-nonesuffixes. - Fixed GPT-5.2 and GPT-5.1-Codex-Max requests to omit
temperatureandtop_pwhen reasoning is enabled, matching OpenAI’s new API constraints for these models. - Added
supports_xhighflag toAPIModelfor models that support the xhigh reasoning tier. - Added comprehensive test coverage in
tests/models/test_xhigh_reasoning.py.
0.0.86 · 2025-12-04
Section titled “0.0.86 · 2025-12-04”- 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.
0.0.85 · 2025-12-04
Section titled “0.0.85 · 2025-12-04”- Added
max_content_charsparameter toExaWebSearchManagerfor 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.
0.0.84 · 2025-12-04
Section titled “0.0.84 · 2025-12-04”- 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-proandgemini-2.5-flash.
0.0.83 · 2025-12-02
Section titled “0.0.83 · 2025-12-02”- 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:
LLMClientnow acceptsglobal_effortandthinking_budgetat 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.
0.0.82 · 2025-11-30
Section titled “0.0.82 · 2025-11-30”- Added
_LLMClient.print_usage()and refactoredStatusTracker.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.
0.0.81 · 2025-11-26
Section titled “0.0.81 · 2025-11-26”- Tooling overhaul:
Tool.from_functionnow uses PydanticTypeAdapterfor schemas, supportsAnnotated[...]descriptions, extracts return-typeoutput_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,BatchToolfor bundling calls,ToolSearchToolfor regex discovery + invocation, andMemoryManagerfor long-lived notes. Todos/subagents/filesystem managers stay available underlm_deluge.tool.prefab. - Pipelines split:
extract,translate, andscore_llmnow live inlm_deluge.pipelines. - Modal sandbox
bashdrops timeouts for background commands and exposesbash/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_efforttooutput_config.effort, and aiohttpServerDisconnectedErrorsurfaces a structuredAPIResponseinstead of an exception.
0.0.80 · 2025-11-24
Section titled “0.0.80 · 2025-11-24”- Added
global_efforttoSamplingParamsand Anthropic request wiring soclaude-4.5-opussends the neweffortfield plus beta header automatically. - Exposed
thinking_budgetonSamplingParamsand made it take precedence overreasoning_effortfor 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.thinkingConfigand remappedreasoning_effort="medium"/Noneto the provider-supported thinking levels. - Default temperature raised to
1.0across 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).
0.0.79 · 2025-11-22
Section titled “0.0.79 · 2025-11-22”- Gemini 3 requests now send
thinkingLevel="low"when callers specifyreasoning_effort="none"or"minimal", avoiding unexpected high-effort reasoning (and cost) when users explicitly ask for lightweight runs. - Documented the new sandbox utilities (
ModalSandboxandDaytonaSandbox) so agents can execute commands in managed remote environments with optional network blocking, stdout capture, file I/O, and preview tunnels.
0.0.78 · 2025-11-19
Section titled “0.0.78 · 2025-11-19”- Fixed
FilesystemManager.read_fileso empty files no longer throw range errors when agents omitend_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_filesto lock the behavior down.
0.0.77 · 2025-11-19
Section titled “0.0.77 · 2025-11-19”- Added
FilesystemManager, an in-memory virtual workspace + tool wrapper that gives agents sandboxedread_file/write_file/list_dir/grep/apply_patchcapabilities without touching the host filesystem; the implementation lives inlm_deluge.tool.prefab.filesystem. - Landed regression coverage in
tests/test_filesystem.pyplus a scripted live scenario intests/test_filesystem_live.pyso 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).
0.0.76 · 2025-11-18
Section titled “0.0.76 · 2025-11-18”- 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 intests/core/test_subagent_manager.pyand the new Agent guide sections spell out the workflow. - Shipped
TodoManager/TodoItem/TodoStatus/TodoPriority, giving LLMs a first-class todo scratchpad they can mutate viatodowrite/todoread; the integration suite intests/core/test_todo_manager.pyensures models follow the protocol. _LLMClientnow exposesstart_agent_loop_nowait()+wait_for_agent_loop()around a newAgentLoopResponse, so you can launch parallel loops and gather the(Conversation, APIResponse)later;tests/core/test_agent_loop.pyadds scenarios for concurrent loops and the docs (features, agents guide, API reference) walk through the new APIs.
0.0.75 · 2025-11-16
Section titled “0.0.75 · 2025-11-16”output_schemanow accepts raw JSON Schemas or PydanticBaseModelsubclasses.lm_deluge.util.schema.prepare_output_schema()handles the conversion to strict JSON Schema (addsadditionalProperties: false, expands$defs, keeps optional fields nullable, etc.) and feeds both Anthropic and OpenAI builders, with coverage intests/core/test_schema_transformations.pyandtests/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.pyand refreshed the structured outputs docs so teams can drop a Pydantic model intoLLMClient.process_prompts_*()without hand-rolling schemas or worrying about mutation.
0.0.74 · 2025-11-15
Section titled “0.0.74 · 2025-11-15”- Structured outputs landed across Anthropic and OpenAI:
LLMClient(..., output_schema=...)now pushes the JSON Schema to Claude (complete with thestructured-outputs-2025-11-13beta and strict-tool gating) and to both OpenAI chat and Responses API requests, with schema precedence overjson_modeeverywhere. - 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.pyandtests/core/test_bedrock_requests.py. process_prompts_sync()forwardsoutput_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.
0.0.73 · 2025-11-13
Section titled “0.0.73 · 2025-11-13”- 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
-minimaland-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
minimaltononetransparently while older models downgrade tolow, and added coverage for the new models (tests/models/test_gpt_5_1.py).
0.0.72 · 2025-11-11
Section titled “0.0.72 · 2025-11-11”- Background requests now honour
request_timeoutprecisely: polling uses a monotonic clock, cancels the remote response before erroring, and surfaces a structured timeoutAPIResponseinstead of hanging jobs. - Cancellation is best-effort logged when failures happen so you can trace leaked jobs during debugging.
0.0.71 · 2025-11-10
Section titled “0.0.71 · 2025-11-10”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.MockAsyncOpenAIdoes a real conversion from OpenAI tool definitions into lm-delugeToolobjects, wires them throughLLMClient.start(), and carries the activeCachePattern, 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.
0.0.70 · 2025-11-09
Section titled “0.0.70 · 2025-11-09”- Packaging now re-exports AsyncOpenAI-style exception classes (
APIError,APITimeoutError,BadRequestError,RateLimitError) so verifier harnesses can catch them directly fromlm_deluge. MockAsyncOpenAIgained full parity with the officialAsyncOpenAIsignature: you can passapi_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.
0.0.69 · 2025-11-09
Section titled “0.0.69 · 2025-11-09”- Introduced the optional
lm-deluge[openai]extra and shipped the first cut ofMockAsyncOpenAI, giving you an on-device OpenAI-compatible client backed byLLMClient. - 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.
0.0.67 · 2025-10-31
Section titled “0.0.67 · 2025-10-31”- Hardened
OpenAIResponsesRequest.handle_response()so truncated/incomplete streaming payloads now produce actionable error messages (with the provider’sincomplete_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.pyfor both the incomplete and the successful response paths.
0.0.66 · 2025-10-31
Section titled “0.0.66 · 2025-10-31”- When you pass MCP server dictionaries (with a
urlkey) throughtoolsfor Anthropic models, the client now automatically moves them into themcp_serversarray and sets the right beta header, so Anthropics’ MCP integration works without any manual request massaging.
0.0.65 · 2025-10-30
Section titled “0.0.65 · 2025-10-30”- Tightened the strict-mode JSON Schema generator for tools: when
strict=True, nested object schemas (including those inside$defs) haveadditionalProperties: false, defaults are stripped, and every property is markedrequired, matching OpenAI’s schema contract. - Backed the change with new tests in
tests/core/test_tool_defs.pyto ensure tools with and without$defsserialize correctly.
0.0.64 · 2025-10-30
Section titled “0.0.64 · 2025-10-30”- Added first-class
$defs/definitionssupport toToolplus 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 setsadditionalProperties: falseso OpenAI’s strict JSON schema validation passes out of the box.
0.0.63 · 2025-10-30
Section titled “0.0.63 · 2025-10-30”SamplingParamsandLLMClientacceptreasoning_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.
0.0.62 · 2025-10-23
Section titled “0.0.62 · 2025-10-23”Message.with_file()/add_file()now accept existingFileobjects, 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.