Mihail Klimin
8fa7c14f18
feat(tauri): Migrate from Tauri v1 to v2
...
# Summary
This commit completes the migration from Tauri v1 to v2, resolves configuration issues, upgrades Next.js, and adds test coverage for critical components to ensure stability during the transition.
# Details
## Tauri v2 Migration
- Updated Tauri dependencies to v2.3.0 series in package.json
- Restructured build configuration in `/app/config/build.ts` to align with Tauri v2 requirements
- Fixed imports and API usage patterns across the codebase
- Added compatibility layer for window.__TAURI__ references to maintain backward compatibility
## Next.js Issues
- Upgraded Next.js from 14.1.1 to 14.2.24
- Resolved caching problems with Server Actions
- Updated eslint-config-next to match the new version
- Cleared Next.js cache and temporary files to address build issues
## Testing & Stability
- Added comprehensive tests for `stream.ts` to verify streaming functionality
- Created mocks for Tauri API to support test environment
- Verified that critical functionality continues to work correctly
- Translated all comments to English for consistency
## Infrastructure
- Fixed peer dependency warnings during installation
- Ensured proper integration with Tauri v2 plugins (clipboard-manager, dialog, fs, http, notification, shell, updater, window-state)
# Approach
Prioritized stability by:
1. Making minimal necessary changes to configuration files
2. Preserving most `window.__TAURI__` calls as they still function in v2
3. Planning gradual migration to new APIs with test coverage for critical components
4. Documenting areas that will require future attention
# Testing
- Created unit tests for critical streaming functionality
- Performed manual testing of key application features
- Verified successful build and launch with Tauri v2
# Future Work
- Future PRs will gradually replace deprecated Tauri v1 API calls with v2 equivalents
- Additional test coverage will be added for other critical components
2025-03-16 02:14:47 +03:00
RiverRay
b6f5d75656
Merge pull request #6344 from vangie/fix/jest-setup-esm
...
test: fix unit test failures
2025-03-14 20:04:56 +08:00
Vangie Du
0d41a17ef6
test: fix unit test failures
2025-03-07 14:49:17 +08:00
RiverRay
f7cde17919
Merge pull request #6292 from Little-LittleProgrammer/feature/alibaba-omni-support
...
feat(alibaba): Added alibaba vision model and omni model support
2025-03-01 10:25:16 +08:00
RiverRay
570cbb34b6
Merge pull request #6310 from agi-dude/patch-1
...
Remove duplicate links
2025-03-01 10:24:38 +08:00
RiverRay
7aa9ae0a3e
Merge pull request #6311 from ChatGPTNextWeb/6305-bugthe-first-message-except-the-system-message-of-deepseek-reasoner-must-be-a-user-message-but-an-assistant-message-detected
...
fix: enforce that the first message (excluding system messages) is a …
2025-02-28 19:48:09 +08:00
Kadxy
2d4180f5be
fix: update request payload to use filtered messages in Deepseek API
2025-02-28 13:59:30 +08:00
Kadxy
9f0182b55e
fix: enforce that the first message (excluding system messages) is a user message in the Deepseek API
2025-02-28 13:54:58 +08:00
Mr. AGI
ad6666eeaf
Update README.md
2025-02-28 10:47:52 +05:00
EvanWu
a2c4e468a0
fix(app/utils/chat.ts): fix type error
2025-02-26 19:58:32 +08:00
RiverRay
2167076652
Merge pull request #6293 from hyiip/main
...
claude 3.7 support
2025-02-26 18:41:28 +08:00
RiverRay
e123076250
Merge pull request #6295 from rexkyng/patch-1
...
Fix: Improve Mistral icon detection and remove redundant code.
2025-02-26 18:39:59 +08:00
Rex Ng
ebcb4db245
Fix: Improve Mistral icon detection and remove redundant code.
...
- Added "codestral" to the list of acceptable names for the Mistral icon, ensuring proper detection.
- Removed duplicate `toLowerCase()` calls.
2025-02-25 14:30:18 +08:00
EvanWu
0a25a1a8cb
refacto(app/utils/chat.ts)r: optimize function preProcessImageContentBase
2025-02-25 09:22:47 +08:00
hyiip
f3154b20a5
claude 3.7 support
2025-02-25 03:55:24 +08:00
EvanWu
b709ee3983
feat(alibaba): Added alibaba vision model and omni model support
2025-02-24 20:18:07 +08:00
RiverRay
f5f3ce94f6
Update README.md
2025-02-21 08:56:43 +08:00
RiverRay
2b5f600308
Update README.md
2025-02-21 08:55:40 +08:00
RiverRay
b966107117
Merge pull request #6235 from DBCDK/danish-locale
...
Translation to danish
2025-02-17 22:58:01 +08:00
river
377480b448
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
2025-02-16 10:50:07 +08:00
river
8bd0d6a1a7
chore: Update NextChatAI domain from nextchat.dev to nextchat.club
2025-02-16 10:48:54 +08:00
Rasmus Erik Voel Jensen
90827fc593
danish rewording / improved button label
2025-02-15 13:08:58 +01:00
Rasmus Erik Voel Jensen
008e339b6d
danish locale
2025-02-15 12:52:44 +01:00
RiverRay
12863f5213
Merge pull request #6204 from bestsanmao/ali_bytedance_reasoning_content
...
add 3 type of reasoning_content support (+deepseek-r1@OpenAI @Alibaba @ByteDance), parse <think></think> from SSE
2025-02-13 14:53:47 +08:00
suruiqiang
cf140d4228
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web into ali_bytedance_reasoning_content
2025-02-12 17:54:50 +08:00
suruiqiang
476d946f96
fix bug (trim eats space or \n mistakenly), optimize timeout by model
2025-02-12 17:49:54 +08:00
suruiqiang
9714258322
support deepseek-r1@OpenAI's reasoning_content, parse <think></think> from stream
2025-02-11 18:57:16 +08:00
RiverRay
48cd4b11b5
Merge pull request #6190 from siliconflow/refine-emoji-siliconflow
...
Fix model icon on SiliconFlow
2025-02-11 18:37:47 +08:00
RiverRay
77c78b230a
Merge pull request #6193 from siliconflow/get-models-siliconflow
...
Model listing of SiliconFlow
2025-02-11 18:37:22 +08:00
RiverRay
b44686b887
Merge pull request #6189 from bestsanmao/bug_fix
...
fix avatar for export message preview and saved image
2025-02-11 18:36:50 +08:00
RiverRay
34bdd4b945
Merge pull request #6194 from siliconflow/vl-support-on-sf
...
Support VLM on SiliconFlow
2025-02-11 18:35:02 +08:00
suruiqiang
b0758cccde
optimization
2025-02-11 16:08:30 +08:00
suruiqiang
98a11e56d2
support alibaba and bytedance's reasoning_content
2025-02-11 12:46:46 +08:00
Shenghang Tsai
86f86962fb
Support VLM on SiliconFlow
2025-02-10 13:39:06 +08:00
Shenghang Tsai
2137aa65bf
Model listing of SiliconFlow
2025-02-10 11:03:49 +08:00
Shenghang Tsai
18fa2cc30d
fix model icon on siliconflow
2025-02-09 18:49:26 +08:00
Shenghang Tsai
0bfc648085
fix model icon on siliconflow
2025-02-09 18:47:57 +08:00
suruiqiang
9f91c2d05c
fix avatar for export message preview and saved image
2025-02-09 16:52:46 +08:00
RiverRay
a029b4330b
Merge pull request #6188 from ChatGPTNextWeb/Leizhenpeng-patch-4
...
Update LICENSE
2025-02-09 11:05:43 +08:00
RiverRay
2842b264e0
Update LICENSE
2025-02-09 11:05:32 +08:00
RiverRay
c2edfec16f
Merge pull request #6172 from bestsanmao/bug_fix
...
fix several bugs
2025-02-09 11:03:44 +08:00
RiverRay
6406ac99a3
Merge pull request #6175 from itsevin/main
...
Add other Xai model
2025-02-09 11:02:13 +08:00
suruiqiang
97a4aafc92
Merge remote-tracking branch 'remotes/origin/main' into bug_fix
2025-02-09 09:46:07 +08:00
GH Action - Upstream Sync
d8f533e1f3
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
2025-02-09 01:22:47 +00:00
RiverRay
c6199dbf9f
Merge pull request #6186 from siliconflow/fix-truc-of-reasoning-model
...
Fix formatting of reasoning model on SiliconFlow
2025-02-08 23:40:39 +08:00
RiverRay
4273aa0803
Merge pull request #6185 from siliconflow/larger_timeout_for_siliconflow
...
Larger timeout for SiliconFlow
2025-02-08 23:39:49 +08:00
Shenghang Tsai
acf75ce68f
Remove unnecessary trimming
2025-02-08 16:34:17 +08:00
suruiqiang
1ae5fdbf01
mini optimizations
2025-02-08 16:15:10 +08:00
Shenghang Tsai
2a3996e0d6
Update siliconflow.ts
2025-02-08 14:38:12 +08:00
GH Action - Upstream Sync
fdbaddde37
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
2025-02-08 01:16:56 +00:00