You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AWS Lex描述型机器人构建器配置报错求助:添加BotLocale及生成式AI设置时持续失败

AWS Lex描述型机器人构建器配置报错求助:添加BotLocale及生成式AI设置时持续失败

各位好,我最近在搭建AWS Lex机器人时,卡在了**AI描述型机器人构建器(Descriptive Bot Builder)**的配置环节,折腾了好几种方法都一直报同一个错误,实在没辙了来请教大家,先把我的情况和排查过程整理如下:

核心报错信息

不管是通过AWS控制台还是CLI操作,只要涉及开启描述型机器人构建器的配置,都会弹出同一条错误提示:

Please ensure your botLocale has Descriptive bot builder enabled with a valid foundation model, then try your request again.

已完成的前置检查

我已经做了以下必要的前置配置,排除了基础权限和模型的问题:

  • 手动为Lex机器人的IAM角色添加了bedrock:InvokeModel权限(发现AWS不会自动给这个角色配置该权限)
  • 已经在Bedrock控制台成功激活了anthropic.claude-3-sonnet-20240229-v1:0模型,状态显示为“access granted”
  • 尝试先创建不带AI功能的en_US BotLocale,通过CLI命令aws lexv2-models describe-bot-locale查看配置,发现AWS自动填充了部分生成式AI的模型ARN,但依然无法开启描述型构建器功能

尝试过的操作及对应报错

1. AWS控制台操作

尝试添加English (US)语言区域并开启AI功能时,直接弹出错误:

Error updating generative AI configurations for English (US) Please ensure your botLocale has Descriptive bot builder enabled with a valid foundation model, then try your request again.

2. AWS CLI操作

我尝试用CLI命令直接创建带生成式AI设置的BotLocale,命令如下:

aws lexv2-models create-bot-locale \
  --bot-id ----------- \
  --bot-version DRAFT \
  --locale-id en_US \
  --nlu-intent-confidence-threshold 0.5 \
  --profile chatbot \
  --generative-ai-settings '{ "buildtimeSettings": { "descriptiveBotBuilder": { "enabled": true, "bedrockModelSpecification": { "modelArn": "arn:aws:bedrock:eu-central-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0 " } } }, "runtimeSettings": { "nluImprovement": { "enabled": true }, "slotResolutionImprovement": { "enabled": true, "bedrockModelSpecification": { "modelArn": "arn:aws:bedrock:eu-central-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0 " } } } }'

执行后返回的错误是:

An error occurred (ValidationException) when calling the CreateBotLocale operation: Please ensure your botLocale has Slot resolution improvement enabled with a valid foundation model, then try your request again.

后续进展

我已经联系了AWS官方技术支持,他们的工程师已经成功复现了这个问题,目前AWS团队正在推进对应的修复工作。


内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.07 07:59:38