Repository navigation
- preserve reasoning content on stored assistant tool-call turns in responses (20e32f7, 3ac3720)
- keep reasoning in decision responses (df165ac)
- add named providers aigrow, onomeo, teamorouter, trustedrouter, and llmtr with env-var keys, default URLs, and required-key validation (f2f1781, 8ff8234, cc2154f, 05d58d6, ac0b09b, 3b6fb07, b027368)
- add live
/v1/modelsdiscovery for trustedrouter and llmtr with offline fallback sets (ac0b09b, 3b6fb07) - auto-detect
trustedrouter/*andnyte/*model prefixes inlookup_provider(cc2154f) - merge
extra_bodydict kwargs into LiteLLM API params instead of dropping them (3ac3720) - rename UberLLM to MartLLM and change default API URL to
https://api.martllm.com/v1(3c62b71, dca76db, 3ac3720) - remove class-based decision API (
DecisionSystem1,DecisionQuestion,DecisionRouter,DecisionsClient) in favor of flat dict-based helpers (decision_choice,decision_score,decision_noul,decision_predict,decision_route,get_decision_response) (62a7d80, cc2154f, a4a8118) - decision helpers return plain dicts with
{type, choice|noul|score, confidence, probabilities}across all providers (cc2154f, 018b944) - add
get_decision_responseentrypoint inllm_funcsthat resolves model/provider and dispatches to the decision module (cc2154f) - restore local-model support in
decision_requestwith resolution order model_path -> NPCPY_DECISION_MODEL -> hosted/Ollama (a4a8118) decision_predictnow answers every question and keys results by name, reporting per-question errors instead of aborting the batch (a4a8118)- retain
legendon parsed score answers so score indices stay interpretable (a4a8118) get_ollama_decisionhonorsNPCPY_SYSTEM1_OLLAMA_MODEL/NPCPY_OLLAMA_BASE_URLand falls back to the default model (a4a8118)- unsupported decision providers and Ollama unavailability now raise
DecisionErrorinstead of silent fallback (018b944) - export
DecisionError,train_decision_model,load_decision_model,load_decision_examplesfromnpcpy.gen.decision; dropDecisionsClient/DecisionsConfig/DecisionsError/parse_answers/load_decisions/available/require_availableexports (62a7d80) - replace DecisionSystem1/DecisionQuestion/DecisionRouter globals in npc_compiler with
get_decision_responseandlist_decision_models(cc2154f) - add
/api/decision/modelsendpoint and pass provider/model/api_url/api_key through the decision route endpoint (cc2154f) - remove
.to_dict()calls in serve.py decision/system1 endpoints, returning dicts directly (cc2154f) - decision mock server returns
total_tokensandoutput_tokensin usage payloads (2d47444) - rewrite decision tests against the flat API and remove
tests/test_gen_decisions.py(2d47444, 018b944, a4a8118) - remove leftover
npcpy/gen/decisions.py.bakfile (68a71c4) - forward
top_ktogenerate()when sampling with the transformers backend (aa893a8) - forward
top_pandtop_ktogenerate()in LoRA, omitting them on greedy decoding (29825ae) - forward
top_kto the MLX sampler inget_mlx_response(bff207f, 11c9b69) - pass temperature/top_p parameters to generate() on the AirLLM CUDA path (aff1051)
- record the user turn in returned messages from the llamacpp backend without mutating the caller's list (baf516c, 3ac3720)
- sum token usage across tool-loop turns in streaming responses and agent
run_stream(9253b5a, 2d47444) - accept both SDK objects and plain dicts for streaming tool-call deltas via a shared
_delta_fieldhelper (2d47444) - keep name and arguments of Ollama streamed tool calls (98ac106, a0ed3e5)
- return an error result and matching
toolmessage for tool calls missing fromtool_map(be1bcd5, 02ce8fc) - parse JSON/YAML format in the auto tool path when no tool is called (8a4feef, 8a1bf4e)
- refactor duplicated JSON/YAML response parsing into a shared
_parse_response_formathelper used by Ollama and LiteLLM paths (3ac3720, cc2154f, b4e46ab) - accept YAML fenced blocks without a
yamllanguage tag in response parsing (3ac3720) - fix memory search to honor the
embedding_providersetting insearch_similar_texts(4f6b939, cf47ebe) - switch memory search from
get_ollama_embeddingsto provider-awareget_embeddings(cc2154f) - add Ollama embeddings support via
/api/embed, including base64 image inputs for multimodal embedding models (c7bc25d, bf4d57b, a5d7be1) - route image paths in embeddings to a vision model or raise a clear error (6bc0cf5, 01d4691)
- send every reference image when using OpenAI image edits and pass multiple images as an array to
images.edit(87333a7, 4b9a063) - call
images.generateinstead ofimages.editfor empty orNoneOpenAI attachments (4b9a063, 3ab394d, 018b944) - honor
n_imagesfor Gemini flash-image models by loopinggenerate_contentrequests (4b9a063, f6bfc81, 7a8afa7) - convert non-RGB/L/CMYK images to RGB before resizing in image loading (62a7d80)
- fix
compress_imageto handle palette, grayscale-alpha,1, andI;16modes before JPEG save, with transparent pixels becoming white (2a16661, 018b944) - fix image alpha detection to cover
LA,PA, and palette images with transparency before converting to RGBA - use the JSON loader for
.jsonfiles inload_file_contents(62a7d80, c849209) - fix YAML frontmatter parsing to match
---delimiters only on their own lines, handling trailing whitespace/CRLF (cc2154f, a72ba5f, 15c3350) - fix agents2npc frontmatter delimiter parsing so inline
---in descriptions no longer truncates metadata (15c3350) - update OpenAI realtime default model to
gpt-realtime-1.5and move TTS to the GA Realtime API withtype/output_modalities/nestedaudiosession shape (62a7d80, dbc17e3, efc5027) - drop
OpenAI-Betaheader and useadditional_headersfor websockets connect, requiringwebsockets>=14(62a7d80, 0ba7e64) - handle
response.output_audio.deltaandresponse.output_text.deltaevent types in realtime receive (62a7d80) - honor explicit Kokoro
lang_codeinstead of overriding it with the voice-based default (62a7d80, 2d47444, 4546be0) - bump
litellmfrom 1.91.1 to 1.111.0 (2d47444, df90768) - bump version from 2.1.29 to 2.1.30 (2d47444, 80f4e52)
- add tests for AirLLM sampling parameter forwarding, OpenAI realtime TTS GA API, Kokoro language code handling, auto-tools format parsing, and agent frontmatter conversion (2d47444)
- rework README decision-model docs around the flat
get_decision_responsefunction andquestion_type(choice/noul/score), and fill in missing decision examples (b0f1f90) - document additional decision-model providers (typesafe, cloudflare, openrouter, databricks, fireworks_ai, azure_ai, litellm_proxy) in README
- add provider docs for LLMTR, onomeo, TeamoRouter, and TrustedRouter; rename UberLLM section to MartLLM
- update llm-responses guide provider table with aigrow, llmtr, onomeo, teamorouter, trustedrouter, and MartLLM entries
- rewrite system-one guide hosted decisions section to describe unified
get_decision_responsesurface and provider table - update decision examples to use
get_decision_response,decision_predict, anddecision_routeinstead of class-based API (675e447)
What's Changed
- fix(response): keep reasoning on the stored assistant tool-call turn by @pcbeingused333 in #369
- chore(providers): rename UberLLM to MartLLM by @al-global-tech in #374
- feat: add AIGROW as a named provider by @guglielmo-io in #370
- fix(transformers): forward top_k to generate() when sampling by @pcbeingused333 in #371
- fix(llamacpp): record the user turn in returned messages without mutating caller's list by @pcbeingused333 in #372
- fix(image): send every reference image on OpenAI edits by @pcbeingused333 in #373
- fix(streaming): sum token usage across tool-loop turns by @pcbeingused333 in #375
- fix(airllm): pass temperature/top_p to generate() on the CUDA path by @pcbeingused333 in #376
- fix(memory): honor embedding_provider in search_similar_texts by @pcbeingused333 in #377
- fix(gen): forward top_k to the MLX sampler in get_mlx_response by @pcbeingused333 in #378
- fix(image): convert palette and grayscale-alpha modes before JPEG save in compress_image by @pcbeingused333 in #382
- fix(load): use JSON loader for .json files in load_file_contents by @draarivpatel-ui in #383
- feat: add onomeo as a named provider by @Owaid0723666 in #380
- fix(image): generate with empty OpenAI attachments by @pcbeingused333 in #384
- feat: add TeamoRouter as a named provider by @2867297362mjb-sketch in #385
- Honor explicit Kokoro language codes in text_to_speech by @pcbeingused333 in #386
- Fix agents2npc frontmatter delimiter parsing by @pcbeingused333 in #387
- feat: add TrustedRouter as a named provider with live model discovery by @jperla in #391
- fix(skills): recognize frontmatter delimiters on their own lines by @pcbeingused333 in #389
- fix(lora): forward top_p and top_k to generate() by @pcbeingused333 in #390
- feat: add LLMTR as a named provider with live model discovery by @knowhycodata in #395
- Chris/decision models update by @cagostino in #398
- fix(image): honor n_images for Gemini flash-image models by @pcbeingused333 in #396
- fix(tools): return an error result for tool calls missing from tool_map by @pcbeingused333 in #394
- fix(streaming): keep name and arguments of Ollama streamed tool calls by @pcbeingused333 in #393
- fix(gen): parse format in the auto tool path when no tool is called by @pcbeingused333 in #392
- Point the decision tests at the flat API and fix what they uncovered by @cagostino in #399
- fix(audio): move OpenAI realtime TTS to the GA Realtime API by @pcbeingused333 in #397
- fix(embeddings): raise on image paths in get_ollama_embeddings by @pcbeingused333 in #388
New Contributors
- @guglielmo-io made their first contribution in #370
- @draarivpatel-ui made their first contribution in #383
- @Owaid0723666 made their first contribution in #380
- @2867297362mjb-sketch made their first contribution in #385
- @jperla made their first contribution in #391
- @knowhycodata made their first contribution in #395
Full Changelog: v2.1.29...v2.1.30