Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: intention chatbot name is shown as groupname #382

Merged
merged 3 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions source/lambda/intention/intention.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ def __list_execution(event, group_name):
item_json["fileName"] = value.split("/").pop()
elif key == "modelId":
item_json["model"] = value
elif key == "groupName":
item_json["chatbotId"] = value
elif key == "LastModifiedTime":
item_json["createTime"] = value
elif key == "LastModifiedBy":
Expand Down Expand Up @@ -264,6 +262,7 @@ def __create_execution(event, context, email, group_name):
Item={
"groupName": group_name,
"intentionId": context.aws_request_id,
"chatbotId": input_body.get("chatbotId"),
"model": execution_detail["model"],
"index": execution_detail["index"],
"tag": execution_detail["index"],
Expand Down
2 changes: 1 addition & 1 deletion source/portal/src/pages/components/AddIntention.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const AddIntention: React.FC<AddIntentionProps> = (props: AddIntentionProps) =>
>
<SpaceBetween direction="vertical" size="l">

<FormField label={t('bot')} stretch={true}>
<FormField label={t('chatbotName')} stretch={true}>
<Select
options={botsOption}
selectedOption={selectedBotOption||{}}
Expand Down
Loading