Configuration
To use the AWS Claude provider, set the following environment variables:
bash
export AWS_ACCESS_KEY_ID="your_access_key_id"
export AWS_SECRET_ACCESS_KEY="your_secret_access_key"
Example Usage
python
from TIRAI.sdk.providers.awsclaude import AWSClaudeSDK
import os
Initialize the Claude client with credentials from environment variables
claude = AWSClaudeSDK(
aws_access_key_id=os.environ.get("AWS_ACCESS_KEY_ID"),
aws_secret_access_key=os.environ.get("AWS_SECRET_ACCESS_KEY"),
region_name="us-west-2",
model="anthropic.claude-3-7-sonnet-20250219-v1:0",
max_tokens=1000,
temperature=0.7,
)
Generate text
response = claude.generate("Explain quantum computing in one sentence.")
print(response)
Breaking Changes
None
Known Issues
None
Compatibility
- Python 3.7+
- Compatible with all major operating systems
Additional Notes
- It is recommended to use environment variables or secure credential management systems for storing AWS credentials
- Always keep your AWS credentials secure and never commit them to version control
Links
- GitHub Repository: https://github.com/theiresearch/tirai-sdk
- PyPI Package: https://pypi.org/project/TIRAI/
- Documentation: [Link to your documentation]
Support
For issues and feature requests, please open an issue on our [GitHub repository](https://github.com/theiresearch/tirai-sdk/issues).