Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes various changes across multiple files, focusing on updating configurations, improving UI components, and refining functionality. The most important changes include updating the model configuration structure, enhancing the UI components for better user experience, and refining the chat model update logic.
Model Configuration Updates:
src/assets/conf/models.toml
: Added comments and updated the API key and base URL for model configurations.src/shared/storages/configStorage.ts
: Introduced a newTomlModelConfig
interface and updated thegetModelConfig
method to return an array ofTomlModelConfig
. [1] [2] [3]UI Component Enhancements:
src/components/ask-panel.tsx
: Updated the text from "Ask That Man" to "AskMan" and improved the key binding handling.src/components/ask-quotedropdown.tsx
,src/components/ask-tooldropdown.tsx
, andsrc/components/ask/ModelDropDown.tsx
: Improved dropdown handling and appearance, including handling the Backspace key to close the dropdown. [1] [2] [3] [4] [5] [6] [7] [8]Chat Model Update Logic:
src/chat/chat.ts
: Added type imports and updated theupdateModelByName
method to handle model configurations more robustly. [1] [2] [3]Minor Text and Command Updates:
README.md
: Updated the right-click menu text from "Ask That Man" to "AskMan".src/pages/background/index.ts
,src/pages/popup/Popup.tsx
: Updated the context menu and popup text from "Ask That Man" to "AskMan". [1] [2]Configuration and Style Adjustments:
twind.config.ts
: Added a new maxWidth configuration for better styling control.