Commit Graph

227 Commits

Author SHA1 Message Date
musistudio
18cfe6e2f0 update doc 2025-07-30 15:53:50 +08:00
musistudio
1d7374067e fix: improve error handling and config validation
- Add fallback mechanism for service startup with default config
- Implement config file backup before saving
- Add robust validation for config data in UI components
- Improve error handling and user feedback in UI
- Fix potential null/undefined access in provider and router components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 15:39:44 +08:00
musistudio
e560db85f4 fix: show default port 3456 in status when not specified in config
When the PORT was not specified in the config file, the status command
would show "undefined" for the port. This fix ensures that the default
port 3456 is displayed instead, matching the actual behavior of the
service which uses 3456 as the default port.

Fixes the issue where `ccr status` shows undefined for port when not
configured explicitly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 15:10:44 +08:00
musistudio
74fa03d3a5 update doc 2025-07-30 14:50:45 +08:00
musistudio
c02e314d76 release v1.0.29 2025-07-30 14:36:03 +08:00
musistudio
27fa655425 Merge branch 'main' of github.com:musistudio/claude-code-router 2025-07-30 14:28:14 +08:00
musistudio
d013a8a01a docs: add ccr ui command to README
- Add documentation for the `ccr ui` command to both the English and Chinese README files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 14:22:38 +08:00
musistudio
7faf20e0c8 feat: add JSON editor for config
- Add a JSON editor using Monaco Editor to allow raw editing of the configuration.
- The editor is presented as a full-screen dialog that slides up from the bottom.
- Includes 'Save' and 'Save and Restart' functionality with internationalized labels and toast notifications for success/failure.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 14:20:20 +08:00
musistudio
ad17b27c3d feat: get all transformers 2025-07-30 11:55:55 +08:00
musistudio
112d7ef8f9 feat: add UI build to build process
- Created separate build script to handle both CLI and UI building
- Added automatic UI dependency installation
- Copy built UI artifacts to dist directory

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 11:15:05 +08:00
musi
2acfce5b63 Merge pull request #346 from BigUncle/feature/add-api-timeout-config
Add API_TIMEOUT_MS configuration option
2025-07-28 09:18:12 +08:00
BigUncle
2c44ea73c7 Add API_TIMEOUT_MS configuration option
- Add API_TIMEOUT_MS to config.example.json with default value of 600000ms
- Update README.md and README_zh.md to document the new configuration option
- Modify codeCommand.ts to use the configured timeout value instead of hardcoded 600000ms
- Default to 10 minutes (600000ms) if not set in config
2025-07-28 00:51:04 +08:00
musistudio
31db041084 release v1.0.28 2025-07-27 17:36:17 +08:00
musistudio
882efb5284 update readme 2025-07-27 17:27:06 +08:00
musistudio
604cc8e1dc fix the stuttering issue on windows 2025-07-27 16:10:48 +08:00
musi
a778755492 Merge pull request #330 from JoeChen2me/main
Feature: 添加可选的长上下文模型阈值配置
2025-07-26 23:03:47 +08:00
JoeChen
3bbfebb5e3 Feature: 添加可选的长上下文模型阈值配置 2025-07-26 12:13:55 +08:00
musistudio
6883fff352 update qwen3-coder example 2025-07-25 17:19:52 +08:00
musistudio
179bab605e release v1.0.27 to fix some bugs and enhance tools 2025-07-25 17:17:14 +08:00
jinhui.li
202402a123 update readme 2025-07-25 14:27:34 +08:00
jinhui.li
c6969fdd90 release v1.0.26 2025-07-23 12:20:52 +08:00
musi
b9d556ff1b add release command 2025-07-21 16:48:30 +08:00
musi
194a664f20 update cli help text 2025-07-21 15:34:39 +08:00
musi
09c3f0ccc6 add custom router doc 2025-07-21 15:31:55 +08:00
musi
5e14b9b0e1 release v1.0.24 to support custom router 2025-07-21 15:13:58 +08:00
jinhui.li
7165953b50 release v1.0.23 to support websearch 2025-07-21 10:46:53 +08:00
musi
e362feaa82 Merge pull request #264 from Linde7777/main
docs: add official Gemini api example in README.md
2025-07-21 10:37:12 +08:00
Linde7777
66054dccb0 docs: add official Gemini api example in README.md 2025-07-21 09:52:52 +08:00
jinhui.li
7efd7183d8 update readme 2025-07-20 16:20:12 +08:00
musi
5b27e797b3 Merge pull request #255 from Thlnking/feature/docs-fix 2025-07-20 15:31:46 +08:00
Thlnking
269a87da74 fix: 更新 pnpm-lock.yaml 和 README_zh.md,删除冲突标志信息 2025-07-20 14:06:30 +08:00
Thlnking
88fbf5e400 doc: 删除文档中出现的 git 冲突标志信息
Signed-off-by: Thlnking <2927874032@qq.com>
2025-07-20 09:23:46 +08:00
jinhui.li
f45316904b Merge branch 'main' of github.com:musistudio/claude-code-router 2025-07-20 01:27:43 +08:00
jinhui.li
d528a8df4c release v1.0.22 to support image 2025-07-20 01:26:52 +08:00
jinhui.li
d0de78eaf0 support configuring the port 2025-07-20 01:00:33 +08:00
musi
2fc79dcf37 release 1.0.21 2025-07-18 23:22:37 +08:00
musi
174c9a740f add groq transformer doc 2025-07-17 23:12:52 +08:00
musi
445908f8ae release v1.0.20 to support groq and fix messges transform bug 2025-07-17 23:10:10 +08:00
jinhui.li
18803469de update doc 2025-07-17 13:25:27 +08:00
jinhui.li
49502e1534 support authentication via APIKEY configuration 2025-07-17 12:49:14 +08:00
jinhui.li
f7f6943d31 update doc 2025-07-17 12:06:22 +08:00
jinhui.li
df21270a7e add config.example.json 2025-07-17 08:45:29 +08:00
musi
0a6d06b7a6 update sponsors 2025-07-16 21:59:00 +08:00
musi
84ac5b62cb fix openrouter stream response parse error 2025-07-16 21:14:27 +08:00
jinhui.li
5174ddacfc fix demo config 2025-07-16 09:15:05 +08:00
musi
5d7681cb62 Merge pull request #194 from weipengzou/feat_support_siliconflow 2025-07-16 08:01:39 +08:00
weipengzou
82d6d420b3 feat: support siliconflow config 2025-07-16 05:33:35 +08:00
musi
4d81734ceb update doc 2025-07-15 22:37:29 +08:00
musi
fb65bb8a95 update sponsors 2025-07-14 22:32:14 +08:00
musi
68e06b0d53 release v1.0.18 2025-07-14 19:48:33 +08:00