Skip to content

Fix Z.ai and MiniMax provider inference#146

Merged
pmbstyle merged 1 commit into
mainfrom
fix-zai-minimax-provider-inference
May 6, 2026
Merged

Fix Z.ai and MiniMax provider inference#146
pmbstyle merged 1 commit into
mainfrom
fix-zai-minimax-provider-inference

Conversation

@pmbstyle
Copy link
Copy Markdown
Owner

@pmbstyle pmbstyle commented May 6, 2026

Summary

This PR stabilizes the new Z.ai and MiniMax provider paths.

It adds provider-specific model catalogs and safe model selection so saved OpenAI model ids do not leak into Z.ai or MiniMax requests. Z.ai model listing now falls back to the Coding Plan model list when the endpoint is unavailable or unhelpful.

MiniMax requests now avoid browser-side OpenAI SDK calls that trigger CORS failures from Stainless headers. Model discovery, primary chat completions, summarization, and context analysis go through the Electron HTTP bridge instead.

The MiniMax chat path also filters reasoning output before it reaches chat or TTS, avoids unsupported system role messages in tool-call continuations, and fixes the audio-state race where synthetic one-shot responses could flip SPEAKING back to IDLE before playback actually started.

Impact

Users can select valid Z.ai and MiniMax models in settings, use MiniMax without CORS failures, continue tool-call conversations, and get cleaner spoken/chat responses without reasoning text leaking into the UI.

@pmbstyle pmbstyle marked this pull request as ready for review May 6, 2026 21:47
@pmbstyle pmbstyle self-assigned this May 6, 2026
@pmbstyle pmbstyle merged commit 30e8f91 into main May 6, 2026
5 checks passed
@pmbstyle pmbstyle deleted the fix-zai-minimax-provider-inference branch May 6, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant