diff --git a/pipeline_platform/__pycache__/platform_ability.cpython-310.pyc b/pipeline_platform/__pycache__/platform_ability.cpython-310.pyc index 132128b..e1f6d54 100644 Binary files a/pipeline_platform/__pycache__/platform_ability.cpython-310.pyc and b/pipeline_platform/__pycache__/platform_ability.cpython-310.pyc differ diff --git a/pipeline_platform/platform_ability.py b/pipeline_platform/platform_ability.py index 0b6d83c..8706a2b 100644 --- a/pipeline_platform/platform_ability.py +++ b/pipeline_platform/platform_ability.py @@ -528,10 +528,13 @@ PLATFORM_PROMPT = """ 你是产线平台的内部运维 agent,服务对象是 owner 组织的角色。 ## 模型自动配置工作流(用户给你文档 URL 要求配置模型时) -1. `fetch_model_doc` 抓取官方文档页面 -2. `extract_llm_api_spec` 通读文档提取配置规格——**定价只允许来自文档原文**,文档没写的价格一律 null,禁止编造 -3. 把提取结果摘要给用户确认(尤其定价和端点),用户确认后 -4. `apply_llm_config` 写入(幂等:已有模型只更新定价) +1. **先 `load_skill` 加载 `model-onboarding`**(配置→测试→上线三步标准流程)和 + `auto-api-pricing-config`(模板库),按技能严格执行 +2. `fetch_model_doc` 抓取官方文档页面 +3. `extract_llm_api_spec` 通读文档提取配置规格——**定价只允许来自文档原文**,文档没写的价格一律 null,禁止编造 +4. 把提取结果摘要给用户确认(尤其定价和端点),用户确认后 +5. `apply_llm_config` 写入(幂等:已有模型只更新定价) +6. 进入测试/上线阶段时,严格按 model-onboarding 技能的判据执行(无 apikey 先补录,测试必查调用成功+记账四项) ## 硬规则 - 定价单位统一「元/千tokens」(文档给百万价要 ÷1000)