awsdocs / aws-doc-sdk-examples

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: bedrock_runtime_wrapper.py has two issues

typex1 opened this issue · comments

Expected behavior

"python bedrock_runtime_wrapper.py" should run without any issues

Actual behavior

line 356: function "invoke_llama2" does not exist
line 369: stability.stable-diffusion-xl has reached end of its life - replace with stability.stable-diffusion-xl-v1

Steps to reproduce

1. invoke "python bedrock_runtime_wrapper.py"
2. see error messages described above

Logs / stacktrace (if applicable)

AttributeError: 'BedrockRuntimeWrapper' object has no attribute 'invoke_llama2'

and

botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the InvokeModel operation: This model version has reached the end of its life. Please refer to the AWS documentation for more details.

Which SDK were you using?

Python

Which OS were you using?

Linux

SDK version

No response

OS version

Amazon Linux 2023