mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
* 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. |
||
|---|---|---|
| .. | ||
| v2 | ||
| model.test.ts | ||
| model.ts | ||
| providerModels.ts | ||
| SettingsPage.tsx | ||