Commit edab1e7
committed
feat: Add AWS Bedrock foundation models support
- Add BedrockProvider class with support for multiple model families
- Support for Claude, Titan, Llama, Mistral, and Cohere models on Bedrock
- Add AWS profile and region configuration options
- Implement proper message formatting for each model type
- Add comprehensive error handling and retry logic
- Update CLI to support --aws-profile and --aws-region options
- Add Bedrock to provider registry and type definitions
- Update README with Bedrock setup instructions and examples
- Add Bedrock to provider comparison and use cases tables
Usage:
- cursorifier --provider bedrock
- cursorifier --provider bedrock --aws-profile myprofile --aws-region us-west-2
- cursorifier --provider bedrock --model anthropic.claude-3-sonnet-20240229-v1:0
AWS credentials are automatically picked up from:
- AWS CLI configuration (aws configure)
- Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
- IAM roles (if running on EC2)
- AWS SSO
- AWS profile (via AWS_PROFILE env var)1 parent 9a9fe1c commit edab1e7
22 files changed
Lines changed: 2583 additions & 395 deletions
File tree
- lib
- providers
- types
- src
- providers
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
260 | 266 | | |
261 | 267 | | |
262 | 268 | | |
| |||
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
318 | 329 | | |
319 | 330 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
328 | 340 | | |
329 | 341 | | |
330 | 342 | | |
331 | 343 | | |
332 | 344 | | |
333 | 345 | | |
334 | 346 | | |
335 | | - | |
| 347 | + | |
| 348 | + | |
336 | 349 | | |
337 | 350 | | |
338 | 351 | | |
| 352 | + | |
339 | 353 | | |
340 | 354 | | |
341 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
342 | 389 | | |
343 | 390 | | |
344 | 391 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments