Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created February 11, 2025 03:19
Show Gist options
  • Select an option

  • Save KyMidd/97aa4a793144a5a3435c0267432f815a to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/97aa4a793144a5a3435c0267432f815a to your computer and use it in GitHub Desktop.
response = bedrock_client.invoke_model(
modelId=model_id,
guardrailIdentifier=guardrailIdentifier,
guardrailVersion=guardrailVersion,
body=json.dumps(
{
"anthropic_version": anthropic_version,
"max_tokens": 1024,
"messages": messages,
"temperature": temperature,
"system": model_guidance,
}
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment