Shared inference interfaces (TextModel, Backend, Token). Zero deps, compiles everywhere.
Find a file
Claude d76448d4a9
test(inference): add comprehensive tests for all exported API
Cover options (GenerateConfig defaults, all With* options, ApplyGenerateOpts/
ApplyLoadOpts), backend registry (Register, Get, List, Default priority order
metal > rocm > llama_cpp), LoadModel routing (explicit/auto backend, error
paths), and Discover (model directory scanning, quantisation, edge cases).

69 tests, 100% statement coverage, race-clean.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 02:06:49 +00:00
CLAUDE.md feat: define shared TextModel, Backend, Token, Message interfaces 2026-02-19 19:37:27 +00:00
discover.go feat: add Discover() for scanning model directories 2026-02-19 23:37:30 +00:00
discover_test.go test(inference): add comprehensive tests for all exported API 2026-02-20 02:06:49 +00:00
FINDINGS.md feat: define shared TextModel, Backend, Token, Message interfaces 2026-02-19 19:37:27 +00:00
go.mod test(inference): add comprehensive tests for all exported API 2026-02-20 02:06:49 +00:00
go.sum test(inference): add comprehensive tests for all exported API 2026-02-20 02:06:49 +00:00
inference.go fix: add json struct tags to Message for API serialization 2026-02-20 02:05:46 +00:00
inference_test.go test(inference): add comprehensive tests for all exported API 2026-02-20 02:06:49 +00:00
options.go feat: add batch inference API (Classify, BatchGenerate) 2026-02-19 23:29:28 +00:00
options_test.go test(inference): add comprehensive tests for all exported API 2026-02-20 02:06:49 +00:00
README.md Initial commit 2026-02-19 19:35:54 +00:00
TODO.md feat: define shared TextModel, Backend, Token, Message interfaces 2026-02-19 19:37:27 +00:00

go-inference

Shared inference interfaces (TextModel, Backend, Token). Zero deps, compiles everywhere.