Repository navigation
fix(memory): apply the turn's route and model overrides when prewarming the memory block - #712
Merged
Conversation
…ng the memory block prewarm_memory_block built its session without the embedder's route and model, so a hosted-route-only embedder answered BACKEND_UNAVAILABLE. It now applies them through apply_turn_overrides, as compact_thread does. Co-authored-by: Medulla <medulla@tinyhumans.ai>
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.
Closes #709
Part of tinyhumansai/chottu-core#712
What changed
prewarm_memory_block_fornow takesmodel_override,temperatureandrouteand applies them withapply_turn_overridesbefore building its session, ascompact_thread_fordoes.Agent::prewarm_memory_block(embed) passes the agent's turn route/model, ascompact_threaddoes.agent_runs/agent_chat/compact_tests.rs):prewarm_memory_block_uses_turn_overrides(hosted route only ->Ready; failed before the fix withBACKEND_UNAVAILABLE: managed inference needs a hosted provider) andprewarm_memory_block_without_overrides_has_no_hosted_provider.Gates (vendor/openhuman)
cargo fmt --all -- --check: passcargo check -p openhuman-embed: passcargo test -p openhuman --lib prewarm_memory_block: 2/2 passcargo test -p openhuman --lib memory_block: 39/39 passcargo clippy -p openhuman --all-targets -- -D warnings: 23 errors, same count as pre-existing, none in the touched filesNo gitlink bump: pure openhuman leaf.