21 Commits

Author SHA1 Message Date
bobo
b9432b6ef6 feat: Add proxy setting to Config page
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.
2024-05-30 11:14:33 +08:00
bobo
00f6abc1d6 feat: Add max output tokens configuration to Config page
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.
2024-05-24 18:48:04 +08:00
bobo
f37ce02766 feat: 支持在页面中对代码补全进行配置。
- 添加了代码补全配置选项和模型选择。
- 更新了 Config.tsx 和 ConfigStore.ts 文件以支持代码补全功能。
2024-05-18 09:45:54 +08:00
bobo
fa23fa8dc8 fix: Improve error handling in configuration load
- 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
2024-05-08 18:35:34 +08:00
Rankin Zheng
b2268514fa fix: Resolve API inaccessibility in private domains
- 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
2024-04-28 16:18:30 +08:00
Rankin Zheng
bb239cf7c2 fix: Simplify config initialization for reliability
- 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
2024-04-28 15:34:15 +08:00
小石头
6270daa0e2 Refactor code and update translations 2024-04-01 19:08:47 +08:00
小石头
f650b960dc Update dependencies and fix image URL transformation 2024-03-29 16:35:19 +08:00
小石头
fc742eae40 Update i18n and Config components 2024-03-28 20:02:31 +08:00
小石头
faed8cb1ac Refactor select styles in Config.tsx and remove unnecessary console.log in ConfigStore.ts 2024-03-28 18:23:41 +08:00
小石头
9090490434 Update select styles in Config.tsx 2024-03-28 17:51:51 +08:00
小石头
c3cbcda2ca Fix link hover color and add text decoration, update command menus, and show provider based on current model and API key 2024-03-28 16:33:15 +08:00
小石头
a1c8a88a28 Fix custom API base validation in Config component 2024-03-25 21:54:20 +08:00
小石头
a49c00abe0 Update i18n translations and ConfigStore 2024-03-25 19:14:27 +08:00
小石头
d195e0a9cb Update zIndex values in BalanceTip and Config components 2024-03-22 16:07:40 +08:00
小石头
7863484150 Add lodash.clonedeep for deep cloning config object 2024-03-22 15:43:16 +08:00
小石头
b75584da17 Update max_input_tokens in modelsTemplate 2024-03-21 22:25:12 +08:00
小石头
b858092eec Update ChatStore, App, InputMessage, and Config components 2024-03-21 19:11:48 +08:00
小石头
06beba10de Add OpenAI provider configuration 2024-03-04 10:13:34 +08:00
小石头
3d571b9514 Add lastRoute property to IRouter interface and update setCurrentRoute function 2024-03-03 22:13:10 +08:00
小石头
80a4f1c2d2 Add @mantine/form package and ConfigStore to RootStore 2024-02-29 18:33:17 +08:00