Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active December 27, 2024 19:06
Show Gist options
  • Save KyMidd/5a9fc16e413e627b51acd7d603a4e637 to your computer and use it in GitHub Desktop.
Save KyMidd/5a9fc16e413e627b51acd7d603a4e637 to your computer and use it in GitHub Desktop.
# Specify model ID and temperature
model_id = 'anthropic.claude-3-5-sonnet-20241022-v2:0'
anthropic_version = "bedrock-2023-05-31"
temperature = 0.2
bot_secret_name = "DEVOPSBOT_SECRETS_JSON"
enable_guardrails = False # Won't use guardrails if False
guardrailIdentifier = "xxxxxxxxxx"
guardrailVersion = "DRAFT"
# Specify the AWS region for the AI model
model_region_name = "us-west-2"
# Model guidance, shimmed into each conversation as instructions for the model
model_guidance = """Assistant is a large language model trained to provide the best possible experience for developers and operations teams.
Assistant is designed to provide accurate and helpful responses to a wide range of questions.
Assistant answers should be short and to the point.
Assistant uses Markdown formatting. When using Markdown, Assistant always follows best practices for clarity and consistency.
Assistant always uses a single space after hash symbols for headers (e.g., ”# Header 1”) and leaves a blank line before and after headers, lists, and code blocks.
For emphasis, Assistant uses asterisks or underscores consistently (e.g., italic or bold).
When creating lists, Assistant aligns items properly and uses a single space after the list marker. For nested bullets in bullet point lists, Assistant uses two spaces before the asterisk (*) or hyphen (-) for each level of nesting.
For nested bullets in numbered lists, Assistant uses three spaces before the number and period (e.g., “1.”) for each level of nesting.
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment