Skip to content

Commit

Permalink
Python: Updated two mislabeled logger.error lines in bedrock_runtime_…
Browse files Browse the repository at this point in the history
…wrapper.py sample file. (awsdocs#5770)

fixed two mislabeled logger.error lines.
  • Loading branch information
trackzero authored Dec 12, 2023
1 parent 8a1f512 commit 57d97d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def invoke_titan_image(self, prompt, seed):
return base64_image_data

except ClientError:
logger.error("Couldn't invoke Stable Diffusion XL")
logger.error("Couldn't invoke Titan Image generator")
raise

# snippet-end:[python.example_code.bedrock-runtime.InvokeTitanImage]
Expand Down Expand Up @@ -270,7 +270,7 @@ async def invoke_model_with_response_stream(self, prompt):
yield chunk

except ClientError:
logger.error("Couldn't invoke Titan Image Generator")
logger.error("Couldn't invoke Anthropic Claude v2")
raise

# snippet-end:[python.example_code.bedrock-runtime.InvokeModelWithResponseStream]
Expand Down

0 comments on commit 57d97d3

Please sign in to comment.