Skip to content

feat(ai): Add Z.AI and MiniMax AI provider support#3832

Open
ImBIOS wants to merge 1 commit intoDokploy:canaryfrom
ImBIOS:feat/add-zai-minimax-ai-providers
Open

feat(ai): Add Z.AI and MiniMax AI provider support#3832
ImBIOS wants to merge 1 commit intoDokploy:canaryfrom
ImBIOS:feat/add-zai-minimax-ai-providers

Conversation

@ImBIOS
Copy link

@ImBIOS ImBIOS commented Feb 28, 2026

Summary

  • Add support for Z.AI and MiniMax as AI providers in Dokploy
  • Both providers use OpenAI-compatible endpoints
  • Neither provider has a /models endpoint, so hardcoded model lists are used (similar to Perplexity)

Provider Details

Z.AI

  • API Type: OpenAI Compatible
  • Base URL: https://api.z.ai/api/paas/v4/
  • Documentation: https://docs.z.ai
  • Models: GLM-4-plus, GLM-4-flash, GLM-4, GLM-4-air, GLM-4-air-long, GLM-3-turbo

MiniMax

  • API Type: Anthropic Compatible (recommended) / OpenAI Compatible
  • Base URL: https://api.minimax.io/anthropic (Anthropic) or https://api.minimax.io/v1 (OpenAI)
  • Documentation: https://platform.minimax.io/docs
  • Models: MiniMax-M2.5, MiniMax-M2.5-highspeed, MiniMax-M2.1, MiniMax-M2.1-highspeed, MiniMax-M2

Changes Made

  • Added Z.AI and MiniMax provider detection in select-ai-provider.ts
  • Added provider creation using OpenAI Compatible SDK
  • Added hardcoded model lists in ai.ts router (following Perplexity pattern)

Test plan

  • Test Z.AI provider with API key and base URL
  • Test MiniMax provider with API key and base URL
  • Verify model list displays correctly for both providers
  • Verify AI chat works with both providers

🤖 Generated with Claude Code

- Add Z.AI provider detection (api.z.ai)
- Add MiniMax provider detection (api.minimax.io)
- Both use OpenAI Compatible SDK
- Add hardcoded model lists (neither has /models endpoint)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ImBIOS ImBIOS requested a review from Siumauricio as a code owner February 28, 2026 10:42
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 28, 2026
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@dosubot dosubot bot added the enhancement New feature or request label Feb 28, 2026
@dosubot
Copy link

dosubot bot commented Feb 28, 2026

Related Documentation

Checked 7 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant