268 Commits

Author SHA1 Message Date
bobo
9a4867ac78 fix: Update ConfigStore to handle model updates correctly
This commit fixes an issue in the ConfigStore where model updates were not being handled correctly. The code now properly updates the models in the newConfig object and sets the needUpdate flag when necessary. This ensures that the models are updated accurately and consistently.
2024-05-23 11:57:09 +08:00
boob.yang
6d96ed1e77
Merge pull request #46 from devchat-ai/fix_model_select_mismatch
set default model to chat model
2024-05-21 10:12:22 +08:00
bobo
bc1bbecdd9 set default model to chat model 2024-05-21 10:09:39 +08:00
Rankin Zheng
09c19caa65
Merge pull request #45 from devchat-ai/fix-message-truncated-if-contains-colon
Fix message truncated if contains colon
2024-05-20 19:27:35 +08:00
Rankin Zheng
afcaa8fec3
Merge pull request #44 from devchat-ai/fix-duplicate-response-in-vscode
Fix vscode duplication response
2024-05-20 19:27:15 +08:00
Luo Tim
e22db79398 Fix message truncated if contains colon 2024-05-20 19:07:37 +08:00
Luo Tim
c5b4d2ac00 Fix vscode duplication response 2024-05-20 17:47:36 +08:00
boob.yang
43b1110dfc
Merge pull request #43 from devchat-ai/config_code_completion
feat: Add support for code completion configuration
2024-05-18 09:50:25 +08:00
bobo
f37ce02766 feat: 支持在页面中对代码补全进行配置。
- 添加了代码补全配置选项和模型选择。
- 更新了 Config.tsx 和 ConfigStore.ts 文件以支持代码补全功能。
2024-05-18 09:45:54 +08:00
Rankin Zheng
cbd20efc1d
Merge pull request #42 from devchat-ai/fix-chat-pannel-readiness
Fix chat panel readiness checking
2024-05-16 10:00:57 +08:00
Luo Tim
124c6ab385 Fix chat pannel readiness checking 2024-05-15 20:08:15 +08:00
boob.yang
fc5e916ec6
Merge pull request #41 from devchat-ai/adapt-workfows2
Adapt workflows2.0
2024-05-13 21:22:22 +08:00
Luo Tim
df7bf82af5 Adapt workflows2.0 2024-05-13 19:17:22 +08:00
boob.yang
fc781cece3
Merge pull request #39 from devchat-ai/fix_config_show_error_while_net_errors
Improve error handling during configuration loading
2024-05-08 18:36:17 +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
boob.yang
58c2708a7d
Merge pull request #38 from devchat-ai/remove_default_model_list
Fix model handling and default model settings
2024-05-07 18:01:27 +08:00
bobo
1fc09c1dc6 fix: Update default model settings and handle empty model list
- Adjusted default model assignment to use first available model if default is not found
- Corrected model list retrieval parameters to prevent errors with empty model lists
- Updated provider and API base URLs based on configuration settings
2024-05-07 17:59:50 +08:00
bobo
6c4f483ddb Update modelsTemplate in src/models/index.ts 2024-05-07 16:26:58 +08:00
bobo
dd748ec66b Refactor ConfigStore.ts for improved provider configuration initialization 2024-04-29 12:49:41 +08:00
bobo
d1a5c1fec9 Update modelsTemplate in src/models/index.ts 2024-04-29 11:04:38 +08:00
Rankin Zheng
aca54e32c3
Merge pull request #37 from devchat-ai/fix/private-domain-api-unreachable-#360
Resolve Private Domain Model List API Inaccessibility Issue
2024-04-28 22:19:13 +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
ed4df3ac60 fix: remove debugger 2024-04-28 15:35:13 +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
Tim
a97c4e1b30
Merge pull request #36 from devchat-ai/support-new-code-file-for-intellij
Support create new source file for IntelliJ
2024-04-18 18:13:30 +08:00
boob.yang
e7397a2967
Merge pull request #35 from devchat-ai/bugfix/vscode-devchat-rendering-#347
Fix rendering issue in VSCode for first-time devchat installation
2024-04-18 10:59:01 +08:00
bobo
a7576c14ad fix: Simplify provider config initialization in ConfigStore
- Streamline the initialization of config models and providers
- Ensure default provider settings for openai and devchat on first access
- Improve code readability and efficiency by using logical OR for defaults
2024-04-18 10:56:44 +08:00
Luo Tim
27cd9ed813 Support create new source file for IntelliJ 2024-04-17 19:47:51 +08:00
小石头
90eba802b7 Refactor Header component to comment out language switcher 2024-04-17 15:28:15 +08:00
boob.yang
f7472afb71
Merge pull request #34 from devchat-ai/support_models_get_from_other_providers
Refactor App.tsx and ConfigStore.ts for Multi-Provider Support
2024-04-17 14:58:29 +08:00
bobo
f443ade6cd Refactor App.tsx and ConfigStore.ts to handle multiple providers for API base and API key 2024-04-17 14:56:56 +08:00
小石头
4b75f3d85e Refactor workflowTip component to exclude message 2024-04-16 15:08:31 +08:00
小石头
9ebd041102 Refactor CurrentMessage component and update imports 2024-04-15 17:23:35 +08:00
Rankin Zheng
68125fdac7
Merge pull request #33 from devchat-ai/feature/chat-interface-enhancement-#171
Feature: Direct file creation from code blocks
2024-04-13 15:35:37 +08:00
Rankin Zheng
1e8ba29c91 feat: Enhance chat interface with new file creation
- Added IconFile import for better UI representation in NewFileButton
- Integrated language support for NewFileButton to handle different coding languages
- Adjusted NewFileButton component's props to include language for file creation command

Closes #171
2024-04-12 23:28:40 +08:00
小石头
e6767697f4 Refactor ChatMark component to remove console.log statement and update handleSubmit function 2024-04-12 14:45:33 +08:00
小石头
00295b6a45 Refactor workflowTip component to update Alert message color 2024-04-10 21:19:57 +08:00
Rankin Zheng
595e51df01 feat: Add create new file button to code block
- Implemented a NewFileButton component in MessageMarkdown
- NewFileButton enables users to create a file directly from code block
- Integrated the NewFileButton into the CodeButtons component UI

Closes #171
2024-04-10 20:30:15 +08:00
小石头
209c1a03a6 Refactor workflowTip component to update Alert message color 2024-04-10 15:44:47 +08:00
小石头
89183d6ee9 Add WorkflowTip component and messageIndex prop 2024-04-09 18:56:10 +08:00
Rankin Zheng
30561fed61
Merge pull request #32 from devchat-ai/docs/update-readme-with-chat-instructions-#318
docs: Update chat instructions localization
2024-04-09 08:31:09 +08:00
Rankin Zheng
7097f631f3 docs: Update chat instructions localization
- Revised chat help instructions for clarity in zh.json.
- Minor adjustment to chat introduction message in ChatStore.ts.
- Removed redundant mention of "+" button functionality in zh.json and ChatStore.ts instructions.
2024-04-09 08:23:25 +08:00
小石头
d43f5f0fc2 Refactor ChatStore methods and add startGenerating function 2024-04-07 17:03:55 +08:00
小石头
3b7d1b3e29 Add table styling and remark-gfm plugin 2024-04-03 16:44:39 +08:00
小石头
b544d7d56b Update ChatStore message content 2024-04-02 16:34:33 +08:00
小石头
67b45803ba Add image support to MessageMarkdown component and update bot message 2024-04-02 16:29:56 +08:00
Rankin Zheng
f7c575e77e fix: improve chinese describe. 2024-04-02 11:28:05 +08:00
小石头
6270daa0e2 Refactor code and update translations 2024-04-01 19:08:47 +08:00
小石头
17ea5601be Remove console.log statements and sort recommendCommands array 2024-03-30 14:09:34 +08:00
小石头
f650b960dc Update dependencies and fix image URL transformation 2024-03-29 16:35:19 +08:00