Expand model providers and harden the runtime#17
Merged
Conversation
315c7e2 to
78fc3fd
Compare
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
Why
Provider integration and action handling had grown across provider-specific paths, which made fallback behavior, async execution, capability checks, and extension compatibility harder to reason about. Safety checks also needed stronger runtime enforcement around shell processes, file reads, memory persistence, and diagnostic output.
This change keeps provider details inside the LLM boundary, makes the shared orchestration path explicit, and preserves the original custom-provider factory contract.
Provider configuration
The implementation follows the existing Chulk environment model and documents the exact precedence for:
CHULK_LLM_PROVIDER,CHULK_MODEL, andCHULK_LLM_FALLBACK_PROVIDERSprovidersextraValidation
python -m pytest -q— 677 passedpython -m ruff check chulk examples scriptspython -m mypy chulk typing_tests— 95 source filespython -m compileall -q chulk examples scriptspython scripts/check_docs.pyProvider adapter tests use injected fake SDK clients and make no live billable calls. Live keys, endpoints, model identifiers, account entitlements, quotas, and billing still require owner validation before merge.