Skip to content

Instantly share code, notes, and snippets.

from litellm import completion
# REQUIRES: AWS_BEARER_TOKEN_BEDROCK ENV varaible
# List of Modela and their names here: https://eu-west-3.console.aws.amazon.com/bedrock/home?region=eu-west-3#/model-catalog
# The global. prefix for the model name is required
def main():
response = completion(
model="bedrock/global.anthropic.claude-sonnet-4-5-20250929-v1:0",
messages=[