Commit Graph

5 Commits

Author SHA1 Message Date
Maki
2470806696 🔑 [refactor] Improve API key and AWS credentials management
- Translate comments to English for consistency
- Add explanatory comment for AWS credentials function
- Refactor default region assignment with inline comment
2024-10-17 21:02:14 +09:00
Maki
d86eaa420e 🚀 [feat] Integrate Amazon Bedrock support
Add support for Amazon Bedrock models, including:

- Implement AWS credentials retrieval for Bedrock
- Add Bedrock model initialization and handling
- Include Claude 3 models (Opus, Sonnet, Haiku) for Bedrock
- Adjust token limits for Bedrock models
- Update chat action to support model selection
- Add @ai-sdk/amazon-bedrock dependency

Key changes:
- app/lib/.server/llm/api-key.ts: Add getAWSCredentials function
- app/lib/.server/llm/constants.ts: Define MAX_TOKENS_BEDROCK
- app/lib/.server/llm/model.ts: Implement getBedrockModel function
- app/lib/.server/llm/stream-text.ts: Use Bedrock-specific token limit
- app/routes/api.chat.ts: Update to support model selection
- app/utils/constants.ts: Add Bedrock model options
- package.json: Add @ai-sdk/amazon-bedrock dependency
- pnpm-lock.yaml: Update with new dependencies
2024-10-17 20:46:17 +09:00
Cole Medin
4f7a06f56a Added the OpenRouter provider and a few models from OpenRouter (easily extendable to include more!) 2024-10-14 19:40:21 -05:00
Cole Medin
90a206f2d4 Added the ability to use practically any LLM you can dream of within Bolt.new 2024-10-13 13:53:43 -05:00
Sam Denty
6fb59d2bc5
fix: remove monorepo 2024-09-25 19:54:09 +01:00