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

…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.
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