The changes in `ConfigStore.ts` include adding a new method `checkAndSetCompletionDefaults` to handle code completion model updates. This method ensures that if there are code models available and the complete model is not set or is not in the available code models, it will be updated to the first code model in the list. This commit message follows the established convention of starting with a verb in the imperative form and providing a clear and concise description of the changes.
The code changes in `ConfigStore.ts` include adding a new method `checkAndSetCompletionDefaults` that sets default completion settings for code models. This method is called when updating the configuration. The purpose of these changes is to ensure that if there are code models available and the API base is custom, and the complete model is not set, the default completion settings will be applied. This commit message follows the established convention of starting with a verb in the imperative form and providing a clear and concise description of the changes.
- Added translation for "Completion Context Length" and "The maximum number of tokens to use as context for the model" in zh.json
- Integrated TextInput component for user input of completion context limit in Config.tsx
- Updated the title of Menu.Item to include the input and output prices of the model
- Fixed the formatting of the prices to display up to 3 decimal places
- Changed model names to chatModels and updated related logic
- Added model pricing details to Menu.Item title for clarity
- Updated localization strings for input and output pricing
- Updated Config.tsx to reflect changes in API base URL and added styling for password input
- Improved accessibility and consistency in input field styling
- Enhanced user experience with updated font sizes and colors
This commit adds the proxy setting to the Config page. It includes the necessary changes to the zh.json and Config.tsx files to display and handle the proxy URL and port input. Users can now enter their proxy URL and port in the Config page to configure the proxy settings for the application.
This commit adds the configuration option for setting the maximum number of tokens output in the Config page. It includes the necessary changes to the Config.tsx file and the ConfigStore.ts file to handle the new "max_tokens" property in the models. This enhancement allows users to customize the maximum number of tokens generated by the chat models.