Add Morpheus (mor.org) as an AI provider#4
Closed
Bougey wants to merge 3 commits intoHackingDave:mainfrom
Closed
Conversation
Morpheus is a decentralized AI compute marketplace (https://mor.org) with an OpenAI-compatible API. This adds it as a third provider option alongside OpenAI and Grok. Changes: - Add api.mor.org to ALLOWED_API_HOSTS and MORPHEUS_API_URL constant - Add 'morpheus' provider auto-detection from MORPHEUS_API_KEY env var - Add default model (LMR-Hermes-3-Llama-3.1-70B) for Morpheus provider - Update .env.example, settings.yaml.example, README, and CONTRIBUTING docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- glm-5 is the latest flagship model on the Morpheus marketplace - Added comment in settings.yaml.example showing how to browse 30+ available models via the API or app.mor.org Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Most Morpheus models have a ":web" variant (e.g. glm-5:web) that enables internet search during inference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
Thanks for the suggestion here! I took most of it and kept it more generic to where you can add any provider you want not specifically morpheus. Easy add to settings if you want to use any OpenAI standard API format. Thanks! Should be posted shortly. |
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 Morpheus as a third provider option for the sidechannel AI assistant, alongside OpenAI and Grok.
Morpheus is a decentralized AI compute marketplace with an OpenAI-compatible API (
https://api.mor.org/api/v1/chat/completions). It currently offers free inference access and supports models like Hermes-3-Llama-3.1-70B, with tool calling, vision, embeddings, and TTS capabilities.Changes
sidechannel_runner.py: Addedapi.mor.orgtoALLOWED_API_HOSTSandMORPHEUS_API_URLconstantconfig.py: Addedmorpheusprovider with auto-detection fromMORPHEUS_API_KEY, default model (LMR-Hermes-3-Llama-3.1-70B), and API URL routingconfig/.env.example: AddedMORPHEUS_API_KEYentryconfig/settings.yaml.example: Updated provider/model comments to include MorpheusREADME.mdandCONTRIBUTING.md: Updated documentation referencesHow it works
Same pattern as the existing OpenAI/Grok providers — zero new dependencies:
MORPHEUS_API_KEYin.env(get one free at app.mor.org)provider: "morpheus"/v1/chat/completionsOpenAI-compatible schemaAPI Docs
Test plan
MORPHEUS_API_KEY=sk-...)MORPHEUS_API_KEYset → selects morpheus providerprovider: "morpheus"in settings.yamlALLOWED_API_HOSTSvalidation acceptsapi.mor.org🤖 Generated with Claude Code