Repository navigation
fix: preserve TinyHumans managed billing semantics - #19
Merged
Merged
Conversation
This was referenced Oct 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds TinyHumans managed inference support to TinyInference through the OpenAI-compatible provider: live bearer resolution, managed usage and reasoning projection, optional thread and attribution headers, readiness probing, and model catalog discovery. The adapter includes request model selection and native tool-calling controls and reports authentication failures through an operation-aware callback.
The follow-up also fixes the initial hosted CI compile errors by explicitly selecting
ChatModel<()>for delegatedOpenAiModelcapability methods. Focused tests pin request model selection, managed usage recovery (including cached-token precedence and absent/zero billing distinctions), readiness behavior, auth handling, and catalog discovery.Validation
cargo fmt --manifest-path crates/tinyinference-llm/Cargo.toml -- --checkandgit diff --checkpass.e5092f5: both stable jobs (format, Clippy, build, all-feature tests, default-feature tests, docs), both Rust 1.88 MSRV jobs, and both supply-chain jobs. The prior PR feat: add TinyHumans managed model adapter #18 ran on the original implementation head and failed stable/MSRV compilation with E0283; this PR carries the compile fix and billing-semantics correction. No green result from that earlier PR is claimed.-D warnings) passed on the same final head. These ran through OpenHuman’sscripts/ci-cancel-aware.shwithCARGO_BUILD_JOBS=1, selectingvendor/tinyagents/vendor/tinyinference/crates/tinyinference-llm/Cargo.toml; full test, check, and Clippy logs are retained in the epic evidence ledger.History note
PR #18 was marked merged by GitHub after its head commit was accidentally pushed to this fork's epic base ref. No merge button or merge command was used. The epic base now contains that implementation commit; this corrective PR adds the follow-up semantics correction and regression coverage and is the review surface for the final combined head.
Refs #8
Part of tinyhumansai/openhuman#8092