Skip to content

Decision API: fllamaDecide (llama.cpp /v1/systemone in process) - #34

Merged
jpohhhh merged 1 commit into
mainfrom
decision-api
Nov 21, 2026
Merged

jpohhhh merged 1 commit into
mainfrom
decision-api

Conversation

@jpohhhh

@jpohhhh jpohhhh commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Adds fllamaDecide, which runs llama-server's POST /v1/systemone handler in process, like fllamaRealtimeOpen does for realtime. Request and response are that route's JSON bodies.

  • Questions: choice, score, noul; images and audio (data URLs) with the model's projector.
  • Errors: invalidRequest, contextSizeExceeded, and new notSupported and cancelled values of FllamaErrorType.
  • contextSize is also the batch (D1 reads the prompt in one batch); 0 means 4096.
  • Native only; web throws UnsupportedError.
  • Version 1.2.0.

Tested on macOS: example/integration_test/decision_integration_test.dart (opt-in, FLLAMA_DECISION_DIR): text, image and audio answers, invalid request, missing projector, cancel. Unit tests and the realtime integration test pass.

After merge: kiln native release, merge its manifest, then tag pub-fllama_cpp-v1.2.0.

Typed choice, score and yes/no questions about text, images and audio,
answered by a decision model (LFM3 D1 Omni) in one forward pass. Errors map
to FllamaErrorType, with new notSupported and cancelled. Native only.
Version 1.2.0.
@jpohhhh
jpohhhh merged commit 4a71254 into main Nov 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant