Expand description
Classifier APIs: TypeSafe’s System One protocol, the same protocol on Cloudflare Workers AI, and classification with a llama.cpp chat model.
Ports of system-one-shared.ts, typesafe-system-one.ts,
cloudflare-workers-ai-system-one.ts and llama-cpp-classify.ts in
packages/ai/src/api in pi v1.0.0.
Structs§
- Classify
Options - Options of one classification.
Functions§
- classify
- Classifies
contextwithmodel. Reports failures in the result, as pi’sclassify()does. - error_
result - pi’s
classifierErrorResult:model’s result for a classification that failed withmessage, aborted whencancelfired. - llama_
server_ root - pi’s
llamaServerRoot: the base URL without/v1.