Repository navigation
feat(cli): add Morphfactory (BETA) provider selection - #45
Merged
Merged
Conversation
Owner
Author
|
Validated the final head
Morphfactory's experimental raw/object completion path remains unavailable because |
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.
Motifcode previously assumed an Infron key at first launch. This adds Morphfactory (BETA) as a selectable Motif-3 provider while keeping existing Infron connections and accounting behavior intact.
/provider, the Provider row in/config, and/config provider <id>switch the running session and save the endpoint/model through the existing settings path.--providerselects a preset for scripts; explicit endpoint/model flags still override it.MOTIF_MORPHFACTORY_API_KEY. Infron keepsMOTIF_API_KEY; switching and logout preserve the other provider's key. Both credentials are withheld from child processes. Endpoint/key changes are synchronous, and a pending login cannot verify its submitted key against a newly selected provider.https://api-cbt.morphfactory.io/v1endpoint andmotif/motif-3model. Login, status and authentication errors identify the selected provider. No dependency, model protocol, version or Infron accounting changes.Validation:
9c34b45and pass here; additional cases cover credential round trips, logout, canonical URLs and batched-input login/switch races.e1abed9passes all five jobs: TypeScript on Node 20/22, Linux ARM64, Python and template goldens.Boundaries: Morphfactory returns 404 for
/v1/completions, so the existing experimental object/raw channels are unavailable. Account balance and reported credit costs remain Infron-only; local token usage works with either provider. Infron is currently unavailable and was checked through existing protocol/accounting tests and UI fixtures, not a live call. One deliberately capped broad live task reached its turn limit after executing its tools; a narrower task completed cleanly. This PR does not claim to change model reliability or serving speed. No merge or release is included.