Skip to content

0.10.0

Latest

Choose a tag to compare

@mattt mattt released this 18 Nov 14:18
Immutable release. Only release title and notes can be modified.
713fc6c

Important

This release changes the executor protocol: DecisionModelExecutor.decide(_:about:) is now decide(_ request: DecisionRequest), so a custom executor needs an update. Calls through DecisionSession compile unchanged (#38).
The Llama trait now requires llama.swift 3.0.0, which wraps llama.cpp v1.0.0 (#43).

A DecisionRequest holds the state, the questions, and a new DecisionOptions value, which has cacheKey, userID, and typed options for one model type. DecisionSession takes options: in its initializer and in decide, probability(of:), choice, and score, and options passed to a call replace the session's options for that call. No backend reads cacheKey or userID yet. SystemOneDecisionModel gets request options with extraBody and extraHeaders, and the values from its initializer are now defaults that a request can override (#38).

SystemOneDecisionModel can now send the images in a state, so you can ask a local llama.cpp server about a picture. A new imageEncoding setting chooses .dataURL, which llama-server reads, or .base64, which Ollama documents. capabilities.supportedAttachmentKinds now follows that setting, and images is a reserved body field that extraBody can't set (#41).

LlamaDecisionModel frees its models and session contexts before the process exits, which works around an abort in llama.cpp's Metal backend; the README lists the cases it can't cover (#42). logLevel no longer races with llama.cpp's own logging, and .none now writes nothing (#40).

What's Changed

  • Pass a DecisionRequest with options to executors by @mattt in #38
  • Align the tooling with the other Any packages by @mattt in #39
  • Install the llama.cpp log callback once by @mattt in #40
  • Free llama.cpp models before the process exits by @mattt in #42
  • Require llama.swift 3.0.0 for llama.cpp 1.0.0 by @mattt in #43
  • Send images from SystemOneDecisionModel by @mattt in #41
  • Update README for 0.10.0 by @mattt in #44

Full Changelog: 0.9.0...0.10.0