You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: If post content is longer than 8k chars, it will cut off the remainder and abruptly end the response. This affects the News functionality for sufficiently long content.
Output speech has a max length of 8000 chars.
Total response cannot be greater than 24kb
Possible solutions:
If post is greater than 8000 chars: split post content into an array where each key contains the first n paragraphs that are less than or equal to 8k chars. Store the remaining post contents as attributes and prompt the user after finishing the first block of content for whether they want to continue or not, and then deliver the next block of content.
The problem with this approach is that it's still possible for issue to occur if the total size of the article content along with the rest of the response is greater than 24kb.
If post is greater than 8000 chars: split post content into an array where each key contains the first n paragraphs that are less than or equal to 8k chars. Store the remaining post contents in cache using the transients API. Store a user attribute of the current array index, and an attribute for the number of keys in the index. If the index is not the last item of the array, prompt the user for if they want to continue once they reach the end of the block, and grab the next block from cache.
The text was updated successfully, but these errors were encountered:
Issue: If post content is longer than 8k chars, it will cut off the remainder and abruptly end the response. This affects the News functionality for sufficiently long content.
Ref: https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#response-format
Output speech has a max length of 8000 chars.
Total response cannot be greater than 24kb
Possible solutions:
If post is greater than 8000 chars: split post content into an array where each key contains the first n paragraphs that are less than or equal to 8k chars. Store the remaining post contents as attributes and prompt the user after finishing the first block of content for whether they want to continue or not, and then deliver the next block of content.
The problem with this approach is that it's still possible for issue to occur if the total size of the article content along with the rest of the response is greater than 24kb.
If post is greater than 8000 chars: split post content into an array where each key contains the first n paragraphs that are less than or equal to 8k chars. Store the remaining post contents in cache using the transients API. Store a user attribute of the current array index, and an attribute for the number of keys in the index. If the index is not the last item of the array, prompt the user for if they want to continue once they reach the end of the block, and grab the next block from cache.
The text was updated successfully, but these errors were encountered: