fix(agent and model):

1. From the model square to the model list, the added models are initially set to be inactive. When manually activating them, a mandatory API key configuration is required.
2. Copying of applications (agent, workflow, multi_agent)
This commit is contained in:
Timebomb2018
2026-03-06 14:40:07 +08:00
parent f1c5f24f6b
commit af6fde414f
4 changed files with 52 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ class ModelConfigBase(BaseModel):
load_balance_strategy: Optional[str] = Field(LoadBalanceStrategy.NONE.value, description="负载均衡策略")
capability: List[str] = Field(default_factory=list, description="模型能力列表")
is_omni: bool = Field(False, description="是否为Omni模型")
model_id: Optional[uuid.UUID] = Field(None, description="基础模型ID")
class ApiKeyCreateNested(BaseModel):