Skip to content

Commit

Permalink
Update to version v5.3.2
Browse files Browse the repository at this point in the history
### Added

- Added new parameter for configurable Opensearch EBS Volume Size (#567)
- Added MetricsBucket to stack outputs (#571)

### Fixed

- Fix Lambda Embeddings documentation with correct event definition (#576)
- Fix broken urls in prairielinetrail tour example (#577)
- Fix bug causing CONNECT_IGNORE_WORDS from working correctly (#589)
- Fix QIDs not matching correctly when the score is less than 1 (#592)
- Improved handling of Lex and Connect response limits (#593)
  • Loading branch information
tabdunabi authored Apr 18, 2023
2 parents 0e258e2 + 60d194f commit 6e0a6a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda/fulfillment/lib/middleware/lex.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ function buildResponseCardV1(response) {
contentType:'application/vnd.amazonaws.card.generic',
genericAttachments:[_.pickBy({
title:_.get(response,'card.title','Title').slice(0,80), //LexV1 title limit
subTitle:_.get(response.card,'subTitle').slice(0,80),
subTitle:_.get(response.card,'subTitle')?.slice(0,80),
imageUrl:_.get(response.card,'imageUrl'),
buttons:_.get(response.card,'buttons')
})]
Expand All @@ -240,7 +240,7 @@ function buildImageResponseCardV2(response) {

imageResponseCardV2 = {
title:_.get(response,'card.title','Title').slice(0,250), //LexV2 title limit
subTitle:_.get(response.card,'subTitle').slice(0,250),
subTitle:_.get(response.card,'subTitle')?.slice(0,250),
imageUrl: imageUrl,
buttons: _.get(response.card,'buttons')
};
Expand Down

0 comments on commit 6e0a6a0

Please sign in to comment.