268 Commits

Author SHA1 Message Date
Luo Tim
9c8f7f6da8 Extract workflow command from message 2024-06-16 00:44:10 +08:00
Luo Tim
49c5214018 Fix platform name 2024-06-16 00:20:49 +08:00
Luo Tim
4db92bf296 Add messages and events platform/language info 2024-06-16 00:11:18 +08:00
boob.yang
1f86b7d72e
Merge pull request #63 from devchat-ai/fix-server-config
Fix server config
2024-06-15 21:44:03 +08:00
Luo Tim
b324281baf Fix infinit reload config 2024-06-15 21:41:03 +08:00
Luo Tim
f23233b8b7 Fix handleMessage 2024-06-15 03:59:54 +08:00
Luo Tim
2ae3f8138f Fix server settings 2024-06-15 01:54:09 +08:00
Tim
973a4da31d
Merge pull request #62 from devchat-ai/fix-config-syncing
Fix config syncing
2024-06-14 20:07:24 +08:00
Luo Tim
3fcc3630e9 Fix config syncing 2024-06-14 20:06:54 +08:00
boob.yang
f78ab29e18
Merge pull request #61 from devchat-ai/sync_server_config
Sync config from server
2024-06-14 13:31:38 +08:00
bobo
05223097a0 sync config from server 2024-06-14 13:21:51 +08:00
Tim
5e197677a4
Merge pull request #60 from devchat-ai/fix-webapp-address-syncing
Fix webapp address syncing
2024-06-12 18:27:08 +08:00
Luo Tim
ac4b721594 Fix webapp address syncing 2024-06-12 18:26:36 +08:00
Tim
924c38776e
Merge pull request #59 from devchat-ai/usages
Ensure only one handler for diff apply
2024-06-12 14:46:10 +08:00
Luo Tim
c9d42be9d4 Ensure only one handler for diff apply 2024-06-12 13:58:39 +08:00
Tim
2bfcc6cc30
Merge pull request #58 from devchat-ai/usages
Handle address not fetched on initialization
2024-06-11 18:40:07 +08:00
Luo Tim
4ac9940a42 Handle address not fetched on initialization 2024-06-11 18:39:19 +08:00
Tim
83595edb56
Merge pull request #57 from devchat-ai/usages
Default model prefer qwen-72b-chat
2024-06-11 12:52:12 +08:00
Luo Tim
4d5fff1d05 Default model prefer qwen-72b-chat 2024-06-11 12:51:13 +08:00
Tim
a01e04ad81
Merge pull request #55 from devchat-ai/usages
Usages
2024-06-11 11:28:31 +08:00
boob.yang
4023484163
Merge pull request #56 from devchat-ai/update_code_completion_config
feat: Update ConfigStore to handle code completion model updates
2024-06-11 10:22:55 +08:00
bobo
9e15aaaff5 feat: Update ConfigStore.ts to handle code completion model updates
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.
2024-06-11 10:18:07 +08:00
bobo
c2cd3f867d feat: Set default completion settings for code models
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.
2024-06-11 09:59:22 +08:00
Luo Tim
43e5ceade3 webapp api address management 2024-06-08 03:19:05 +08:00
Luo Tim
b3a18fe429 Create message with model info 2024-06-07 17:07:15 +08:00
Luo Tim
85c9860719 Refactor code diff apply message flow 2024-06-07 16:36:00 +08:00
Luo Tim
2c01f5c5ba Manage webapp credentials by APIUtil and add onCodeDiffApply listener 2024-06-07 15:36:05 +08:00
Luo Tim
2395c6ad82 Handle code copy events 2024-06-07 01:56:08 +08:00
Luo Tim
6df56742b4 Handle code buttons events 2024-06-07 01:55:49 +08:00
Luo Tim
05bf0a7f3d Trigger message event on generating 2024-06-07 01:55:09 +08:00
Luo Tim
e23f343d0f Add config methods to choose API addresses 2024-06-07 01:53:52 +08:00
Luo Tim
68e210d0d5 Add APIUtils 2024-06-07 01:52:29 +08:00
boob.yang
808bf945e2
Merge pull request #54 from devchat-ai/config_completion_context_limit
chore: Add completion context length configuration
2024-06-06 17:47:37 +08:00
bobo
1b76aa68fb chore: Add completion context length configuration
- 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
2024-06-06 17:45:00 +08:00
boob.yang
750874981a
Merge pull request #53 from devchat-ai/update_price_too_long
Update model pricing display
2024-06-05 15:43:35 +08:00
bobo
ebdba68d9a fix: Update model pricing display
- 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
2024-06-05 15:42:38 +08:00
boob.yang
e0506b62be
Merge pull request #52 from devchat-ai/show_model_price
fix: Update model handling and pricing display
2024-05-30 21:27:52 +08:00
bobo
415d61b525 fix: Update model handling and pricing display
- 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
2024-05-30 21:26:09 +08:00
boob.yang
faf35d47ea
Merge pull request #51 from devchat-ai/reload_model_after_config_save
feat: Reload model after config save
2024-05-30 12:17:21 +08:00
bobo
3ae32dfdae feat: Reload model after config save
- 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
2024-05-30 12:15:53 +08:00
bobo
bf7a50eb76 feat: Reload model after config save
- Updated Config.tsx to set template and send message after config save
- Added setTimeout to delay model reload
- Improved config save functionality
2024-05-30 12:10:14 +08:00
boob.yang
523d411b30
Merge pull request #50 from devchat-ai/add_proxy_config
feat: Add proxy setting to Config page
2024-05-30 11:23:12 +08:00
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
Tim
635f6d1d13
Merge pull request #49 from devchat-ai/fix-code-auto-break-lines
Fix auto breaking lines in code block
2024-05-27 20:55:53 +08:00
Luo Tim
9689481491 Fix auto breaking lines in code block 2024-05-27 20:55:21 +08:00
boob.yang
5321caa7d3
Merge pull request #48 from devchat-ai/add_more_fields_to_model_config
Add more fields to model config
2024-05-24 19:12:53 +08:00
bobo
c3e99c23c7 fix: Update ConfigStore to handle model updates correctly 2024-05-24 19:10:03 +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
Luo Tim
270b55e5de Register handlers before sending message 2024-05-23 22:55:43 +08:00
boob.yang
aec4216856
Merge pull request #47 from devchat-ai/update_models_at_loading
fix: Correct model updates handling in ConfigStore
2024-05-23 11:59:10 +08:00