Repository navigation
v2.1.24
- added
npcpy.gen.systemonemodule withOllamaSystem1Client,OllamaSystem1Config,systemone,load_ollama_system1, availability/version checks, url normalization, model listing, a 64 kib request-size guard, and parsers forchoice,noul,score, andpredictresponses (cd8324c, dc5d8a2) - integrated the ollama backend into
npcpy.gen.decision: addedDecisionSystem1.from_ollama, ollama-backeddecision_*helpers forchoice,score,noul,predict, androute, environment-variable backend selection viaNPCPY_SYSTEM1_BACKENDandNPCPY_SYSTEM1_OLLAMA_MODEL, tiered routing with threshold fallback, and clear errors for unsupported training or local-path loading (cd8324c, 2ae2d05) - exported system one client symbols (
OllamaSystem1Client,OllamaSystem1Config,OllamaSystem1Error,systemone,load_ollama_system1, etc.) from top-levelnpcpyandnpcpy.gen, and exposedDecisionQuestion,DecisionRouter,DecisionSystem1, and thedecision_*helpers in the npc compiler runtime globals (2ae2d05, dc5d8a2, c120788) - added flask serve endpoints for system one and decision operations (
/api/system1/*and/api/decision/*) withbackend,model, andbase_urlparameters and a shared predictor resolver that selects local-trained or ollama predictors (cd8324c, c120788) - made
get_model_context_windowrespect theOLLAMA_NUM_CTXenvironment variable when determining the ollama context window size (dc5d8a2) - refreshed the litellm cost map and included cost-map models when listing locally available models (c120788)
- cached model context-window lookups in
/api/modelsandget_available_models(c120788) - removed the
npc_object.jinxes_dictfallback inexecute_jinxto separate tool-capable and jinx-capable paths (c120788) - bumped package version to
2.1.24(c120788) - added
trust_remote_codeoption toEmbeddingConfigandHilbertConfig, and propagated it through allAutoModelandAutoTokenizerloading call sites for custom transformer architectures (2ae2d05, c120788) - changed the default embedding training device to auto-select cuda, then apple mps, then cpu, while still honoring explicit
deviceoverrides (2ae2d05, c120788) - fixed embedding tokenizer config handling so remote model loading passes
configkwargs, whileload_embedding_modelkeeps onlymodel_pathanddevicefor local directories (1c4679e) - added system one decision tests to ci running against a mock ollama server, added a mock ollama server and pytest fixtures, and included system one coverage in flask server tests (665e61e, c120788)
- added comprehensive system one user guide (
docs/guides/system-one.md) and api reference page (docs/api/system1.md) coveringnpcpy.ft.system1,npcpy.gen.systemone, andnpcpy.gen.decision, and linked them from the documentation index and mkdocs navigation (665e61e, 2ae2d05) - reorganized memory api docs: dropped
kg_visandcommand_history, addedknowledge_store,knowledge_index,kg_population, andmemory_processorsections, and removedkg_vis.pyfrom the readme's list of large files (665e61e) - pinned
pymdown-extensions>=12.1in docs requirements (665e61e) - added
examples/example_system1_ollama.pydemonstrating system one decisions via a local ollama model (665e61e) - added optional
legendfield toScoreResultand included it into_dict()output for score interpretation metadata (2ae2d05)
New Contributors
- @Harbor404 made their first contribution in #304
Full Changelog: v2.1.23...v2.1.24