Sentiment Analysis (amazon.titan-tg1-large)
POST https://bedrock-runtime.{{AWS_Region}}.amazonaws.com/model/:model_identifier/invoke
Request Body
{"inputText"=>"Review: This movie is so great and once again dazzles and delights us Is this movie review sentence negative or positive? \nOPTIONS: -positive -negative ", "textGenerationConfig"=>{"maxTokenCount"=>4096, "temperature"=>0, "topP"=>0.9}}
RESPONSES
status: OK
{"inputTextTokenCount":34,"results":[{"tokenCount":2,"outputText":"\npositive","completionReason":"FINISH"}]}