Skip to content

fix: add DeepSeek, Z.ai, MiniMax, Moonshot, SambaNova to PLATFORM_ALIAS_MAPPING (fixes #1578, #1556)#1675

Open
carlosjarenom wants to merge 1 commit into
eigent-ai:mainfrom
carlosjarenom:fix/issue-1578-deepseek-zai-byok-mapping
Open

fix: add DeepSeek, Z.ai, MiniMax, Moonshot, SambaNova to PLATFORM_ALIAS_MAPPING (fixes #1578, #1556)#1675
carlosjarenom wants to merge 1 commit into
eigent-ai:mainfrom
carlosjarenom:fix/issue-1578-deepseek-zai-byok-mapping

Conversation

@carlosjarenom

Copy link
Copy Markdown

Problem

Users configuring DeepSeek, Z.ai, MiniMax, Moonshot, or SambaNova as custom API keys through the BYOK UI would encounter validation failures. The backend's PLATFORM_ALIAS_MAPPING was missing these providers.

Related issues: #1578 (DeepSeek), #1556 (Z.ai)

Root Cause

The frontend (src/lib/llm.ts) lists these providers as BYOK options, but the backend alias mapping didn't include entries for them, so they were passed directly to CAMEL which couldn't recognize them.

Additionally, z.ai was incorrectly mapped to "zhipu" instead of "openai-compatible-model".

Fix

Updated backend/app/model/model_platform.py:

  • deepseekopenai-compatible-model (new)
  • z.aiopenai-compatible-model (was incorrectly zhipu)
  • minimaxopenai-compatible-model (new)
  • moonshotopenai-compatible-model (new)
  • samba-novaopenai-compatible-model (new)

All these providers expose OpenAI-compatible API endpoints.

Also updated the test file to cover the new mappings.

Files Changed

  • backend/app/model/model_platform.py - Added missing provider aliases
  • backend/tests/app/model/test_model_platform.py - Updated tests

@Douglasymlai Douglasymlai added bug Something isn't working backend labels Jul 3, 2026
@Douglasymlai Douglasymlai requested a review from 4pmtong July 3, 2026 13:42
@Douglasymlai

Copy link
Copy Markdown
Contributor

Hi @carlosjarenom, could you help resolve the conflicts?
Once they’re resolved, I can move this forward to the review process.

@carlosjarenom carlosjarenom force-pushed the fix/issue-1578-deepseek-zai-byok-mapping branch from eafc787 to b99cf3d Compare July 4, 2026 09:36
…AS_MAPPING (fixes eigent-ai#1578, eigent-ai#1556)

These providers use OpenAI-compatible APIs but were missing from the
backend alias mapping, causing BYOK validation to fail when users
configured them through the UI.

Changes:
- Add 'deepseek' -> 'openai-compatible-model' (fixes eigent-ai#1578)
- Change 'z.ai' from 'zhipu' to 'openai-compatible-model' (fixes eigent-ai#1556)
- Add 'minimax', 'moonshot', 'samba-nova' -> 'openai-compatible-model'
- Update tests to reflect new mappings

All these providers expose OpenAI-compatible endpoints according to
their API documentation.
@carlosjarenom carlosjarenom force-pushed the fix/issue-1578-deepseek-zai-byok-mapping branch from b99cf3d to 6dd9dbe Compare July 4, 2026 10:34
@carlosjarenom

Copy link
Copy Markdown
Author

Rebased on latest upstream/main and force-pushed. Conflicts resolved.

Changes: Updated PLATFORM_ALIAS_MAPPING in model_platform.py — added deepseek, minimax, moonshot, samba-novaopenai-compatible-model, and fixed z.ai (was incorrectly mapped to zhipuai). Test updated accordingly.

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

Labels

backend bug Something isn't working Review Required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants