Skip to content

feat: Support multiple models per BYOK platform#1500

Open
dev-miro26 wants to merge 2 commits intoeigent-ai:mainfrom
dev-miro26:feat/byok-multiple-models-per-platform
Open

feat: Support multiple models per BYOK platform#1500
dev-miro26 wants to merge 2 commits intoeigent-ai:mainfrom
dev-miro26:feat/byok-multiple-models-per-platform

Conversation

@dev-miro26
Copy link
Contributor

@dev-miro26 dev-miro26 commented Mar 16, 2026

Related Issue:

Closes #1399

Description

Previously, BYOK required users to specify only one model name per platform. Switching between models (e.g., Claude Opus vs Sonnet vs Haiku on Anthropic) required manually editing the model name each time, which is tedious given that most LLM platforms offer several models with different prices and capabilities.
This PR adds support for saving and managing multiple model names per BYOK platform:

  • Database: New model_types JSON column on the provider table (with migration and backfill of existing model_type values).
  • Server: Provider, ProviderIn, and ProviderOut models updated. Create/update endpoints ensure model_types stays in sync with the active model_type.
  • Frontend – Models settings: The single model-type text input is replaced with a multi-model chip UI. Users can add models from a suggestions dropdown (pre-populated per platform) or type custom names. Clicking a chip sets it as the active model; each chip has an X to remove it. The active model is highlighted with a star icon and green border.
  • Frontend – Add Worker: When assigning a custom model to an agent, the model type field now shows a dropdown of the user's saved models for the selected platform instead of a free-text input.
  • Suggested models: Added commonly used model identifiers for OpenAI, Anthropic, Gemini, DeepSeek, Mistral, Grok, Qwen, Z.ai, Moonshot, and Ernie to help users discover models without external research.
  • Backward compatible: model_type remains the "active" model used by chatStore and the backend agent system. No changes to the task execution flow.

Testing Evidence (REQUIRED)

  • I have included human-verified testing evidence in this PR.
  • This PR includes frontend/UI changes, and I attached screenshot(s) or screen recording(s).
  • No frontend/UI changes in this PR.

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Contribution Guidelines Acknowledgement

eigent-1399

@dev-miro26
Copy link
Contributor Author

Hi, @4pmtong
Could you please check this PR and left comment kinldy?

@4pmtong
Copy link
Collaborator

4pmtong commented Mar 17, 2026

Thanks @dev-miro26 for contribution! Could @fengju0213 @a7m-1st help review it?

@4pmtong 4pmtong requested review from a7m-1st and fengju0213 March 17, 2026 11:13
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.

[Feature Request] BYOK - Save & Support Multiple Models Per Platform

2 participants