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.
- Added conditional check to prevent error when modelArray is empty
- Moved axios request into try-catch block to handle network errors
- Modified refreshModelList to handle fetchLLMs errors gracefully
- Add forced model list refresh after reading configuration
- Remove unnecessary modelMenus registration and fetching
- Replace modelMenus with config.modelNames for consistency and reliability
- Enclose if statement body with braces for better readability
- Remove redundant and unused model list fetching code
Closes#360
- Removed axios dependency and complex API key handling in App.tsx
- Ensured safe navigation with optional chaining for devchat API paths
- Added concise return statements in Config.tsx conditionals for clarity