Repository navigation
Conversation
|
No actionable comments were generated in the recent review. WalkthroughMorse is added as a supported AI provider. Unset provider fields receive defaults for the OpenAI Chat API type, Morse endpoint, and Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk:
|
|
👀 Human review needed JustificationThis adds a runtime integration, not just documentation or configuration metadata. Selecting The added unit test checks the preset defaults; it does not establish end-to-end compatibility or verify what data the provider receives and retains. A human reviewer should check credential handling and the data sent to Morse, particularly when terminal tools are enabled, and verify the provider's privacy claims before shipping. Reviewed commit 8ffa829 → Pair Review BriefingReviewed commit 8ffa829 |
| } | ||
| if config.Provider == uctypes.AIProvider_Morse { | ||
| if config.APIType == "" { | ||
| config.APIType = uctypes.APIType_OpenAIChat |
There was a problem hiding this comment.
Morse sends an error event and closes without [DONE] when its upstream fails after streaming starts. The openai-chat backend's processChatStream skips that event because it has no choices and treats EOF as success, so Wave saves the incomplete reply without telling the user it failed.
Severity: medium
🤖 Was this useful? React with 👍 or 👎
| - `ai:apitokensecretname` to `MORSE_KEY` (store your Morse API key with this name) | ||
|
|
||
| :::note | ||
| For Morse, you must manually specify `ai:capabilities` based on your model's features. The [Morse models API](https://inference.trymorse.ai/v1/models) lists each model's `input_modalities` (add `"images"` when it includes `image`) and `supported_parameters` (add `"tools"` when it includes `tools`). |
There was a problem hiding this comment.
The ai:capabilities guidance uses model-level metadata, but Morse documents that supported_parameters combines all tiers and that a tier can override input_modalities. Users following this note can therefore enable tools or image attachments that their serving tier rejects.
Severity: medium
🤖 Was this useful? React with 👍 or 👎
| ``` | ||
|
|
||
| The provider automatically sets: | ||
| - `ai:endpoint` to `https://inference.trymorse.ai/v1/chat/completions` |
There was a problem hiding this comment.
This setup sends more than the typed prompt to the hosted ai:endpoint: Widget Context is on by default, and GenerateCurrentTabStatePrompt includes the local username and open-widget details such as file paths and browser URLs. The Morse setup doesn’t disclose that Wave sends those details with the request, even before any tool runs.
Severity: medium
🤖 Was this useful? React with 👍 or 👎
|
Thanks for the review points. Going through them:
The CLA is signed. |
Adds
morseas anai:provider, in the same shape as thegroqprovider (#2942): a provider constant, endpoint and secret-name defaults inapplyProviderDefaults, the schema enum, a unit test, and a docs section.Morse is a private, OpenAI-compatible API whose catalog includes uncensored and abliterated open-weight models (DeepSeek V4.1 Flash, GLM 5.3, Gemma 4 26B, Kimi K3.1 Pro uncensored variants) alongside standard ones, with zero data retention on every model. For terminal work that means testing, monitoring and defending systems without safety filters blocking real security work. Uncensored models are on paid credits.
With this, a mode needs only:
{ "morse-deepseek-flash": { "display:name": "Morse - DeepSeek V4.1 Flash", "ai:provider": "morse", "ai:model": "deepseek/deepseek-v4.1-flash", "ai:capabilities": ["tools"] } }and a
MORSE_KEYsecret. Uncensored ids from the live model list (GET https://inference.trymorse.ai/v1/models, no key needed) that work the same way:deepseek-ai/deepseek-v4.1-flash-uncensored,z-ai/glm-5.3-uncensored,google/gemma-4-26b-a4b-uncensored,moonshotai/kimi-k3.1-pro-uncensored.Files
pkg/aiusechat/uctypes/uctypes.go:AIProvider_Morse = "morse"pkg/aiusechat/usechat-mode.go:MorseChatEndpoint(https://inference.trymorse.ai/v1/chat/completions),MorseAPITokenSecretName(MORSE_KEY), defaults block next to Groq'spkg/aiusechat/usechat_mode_test.go:TestApplyProviderDefaultsMorse, a copy of the Groq testpkg/wconfig/settingsconfig.goandschema/waveai.json:morsein the provider enumdocs/docs/waveai-modes.mdx: provider list, a Morse section after Groq, the field reference and the capabilities noteChecks:
gofmt -lreports nothing new in the touched Go files (settingsconfig.gowas already listed before this change),schema/waveai.jsonparses, and the patch applies cleanly onmain. I did not rungo testlocally (no full module download on my side) and did not run a live chat with a key. Happy to sign the CLA.I'm on the Morse team.
Morse also runs Built with Morse, a revenue share for open-source projects that ship Morse as a provider: terms and sign-up.
More about the Morse inference API.