logancyang_obsidian-copilot/src/settings
Logan Yang 63a3f9fc5f
Add bedrock provider (#1955)
* Add Amazon Bedrock support

- Introduced new fields for Amazon Bedrock in `aiParams.ts` and `constants.ts`.
- Implemented API key and region validation in `utils.ts`.
- Created `BedrockChatModel` class for handling Bedrock-specific chat model interactions.
- Updated `ChatModelManager` to include Bedrock as a supported provider.
- Enhanced settings management to accommodate Bedrock API key and region.
- Added UI components for Bedrock model configuration in settings dialogs.
- Included unit tests for Bedrock chat model functionality.

This update expands the plugin's capabilities to integrate with Amazon Bedrock, allowing users to utilize its chat model features effectively.

* Support token count for bedrock

* Refactor Amazon Bedrock API key and region validation

- Simplified the API key validation logic in `utils.ts` to only require the API key, as the region defaults to "us-east-1" if not specified.
- Removed redundant checks for base URL and region in `chatModelManager.ts`, streamlining the endpoint construction process.

This update enhances the clarity and efficiency of the Bedrock integration, ensuring a smoother user experience.
2025-10-23 16:29:31 -07:00
..
v2 Add bedrock provider (#1955) 2025-10-23 16:29:31 -07:00
model.test.ts Refactor constants and settings to enhance folder management (#1830) 2025-09-21 20:56:52 -07:00
model.ts Add bedrock provider (#1955) 2025-10-23 16:29:31 -07:00
providerModels.ts Add bedrock provider (#1955) 2025-10-23 16:29:31 -07:00
SettingsPage.tsx Merge 3.1.0 preview (#1906) 2025-10-10 21:38:50 -07:00