refactor(agent): 将重置模型参数接口改为获取默认参数

移除不再使用的重置模型参数功能,将POST接口改为GET接口以获取默认参数
This commit is contained in:
wxy
2026-04-17 11:34:11 +08:00
parent 26a3d8a41b
commit a5613314b8
2 changed files with 2 additions and 55 deletions

View File

@@ -271,9 +271,9 @@ def update_agent_config(
return success(data=app_schema.AgentConfig.model_validate(cfg))
@router.post("/{app_id}/model/parameters/reset", summary="获取 Agent 模型参数默认配置")
@router.get("/{app_id}/model/parameters/default", summary="获取 Agent 模型参数默认配置")
@cur_workspace_access_guard()
def reset_agent_model_parameters(
def get_agent_model_parameters(
app_id: uuid.UUID,
db: Session = Depends(get_db),
current_user=Depends(get_current_user),