Commit Graph

47 Commits

Author SHA1 Message Date
musi
a958f18305 Merge branch 'main' into bugfix/fix-code-args-handling 2025-08-06 20:53:24 +08:00
小光
37cb0c776f fix ui: 修复Docker中运行通过UI重启报错的问题
使用Claude Code修复
2025-08-06 15:03:06 +08:00
Stefan Schoeffmann
91e9d43abd Preserve spaces in quoted args
This makes SDK mode work since the model gets the complete quoted prompt passed in (instead of just the first word)
2025-08-05 21:34:19 +02:00
Yashvardhan Jagnani
355c83a8c1 feat: non interactive spawn compatible 2025-08-05 13:42:38 +05:30
FlintyLemming
d684319261 feat: support setting ANTHROPIC_SMALL_FAST_MODEL from config file 2025-08-04 15:03:22 +08:00
musistudio
e51d70caf2 feat ui: add tooltip 2025-08-04 09:48:15 +08:00
musistudio
99afe0e21a compatible model name case problem 2025-08-03 07:47:11 +08:00
musistudio
7751683365 pass token count to custom router 2025-08-03 07:38:51 +08:00
musistudio
c2edcd145e add supoort subagent router via <CCR-SUBAGENT-MODEL> 2025-08-03 07:31:17 +08:00
musistudio
3cb086fc57 feat: Limit config backups to 3 most recent files
Modified the backupConfigFile function to automatically clean up old backups,
keeping only the 3 most recent backup files. This prevents the config directory
from accumulating excessive backup files over time.

The implementation:
- Creates timestamped backups as before
- After each new backup, scans for existing backups
- Sorts backups by timestamp (newest first)
- Deletes all but the 3 most recent backups
- Gracefully handles cleanup errors with warnings

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 21:59:10 +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
27fa655425 Merge branch 'main' of github.com:musistudio/claude-code-router 2025-07-30 14:28:14 +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
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
604cc8e1dc fix the stuttering issue on windows 2025-07-27 16:10:48 +08:00
JoeChen
3bbfebb5e3 Feature: 添加可选的长上下文模型阈值配置 2025-07-26 12:13:55 +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
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
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
jinhui.li
d0de78eaf0 support configuring the port 2025-07-20 01:00:33 +08:00
jinhui.li
49502e1534 support authentication via APIKEY configuration 2025-07-17 12:49:14 +08:00
Hayaii
20e8a8f197 adapt path and commands for Windows environment 2025-07-13 15:36:59 +08:00
musi
8f8eeacc3d fix fallback to the default model when no router configuration is provided 2025-07-10 20:51:30 +08:00
musi
3260d1b6b8 release v1.0.15 2025-07-07 15:03:48 +08:00
jinhui.li
3ef82991fb support json config 2025-07-03 17:19:26 +08:00
jinhui.li
30c764828a switch to llms 2025-07-02 13:24:37 +08:00
Evyatar108
c984b57585 Fix multi/parallel-tool invocation 2025-06-20 00:16:47 -07:00
jinhui.li
57a7da14a3 add plugins 2025-06-18 12:20:07 +08:00
jinhui.li
ac51db990c save request errors to a log file 2025-06-17 12:37:52 +08:00
jinhui.li
ae88d63c7c adjust /model command priority 2025-06-17 12:36:59 +08:00
jinhui.li
dd29cf895f fix API Error: A.map is not a function 2025-06-17 09:01:53 +08:00
musi
d0d164e8ea release v1.0.7 2025-06-17 06:12:59 +08:00
jinhui.li
329b5d9b9b fix API Error when using proxy 2025-06-16 12:43:44 +08:00
musi
a3ec2c223d fix not working without router 2025-06-15 20:45:32 +08:00
jinhui.li
1aa6dbe51a add CLAUDE_PATH env variable 2025-06-15 20:26:35 +08:00
jinhui.li
5e70bc70c0 Support multiple plugins 2025-06-15 16:58:11 +08:00
jinhui.li
9a89250d79 use the router to dispatch different models: background,longcontext and think 2025-06-14 19:48:29 +08:00
jinhui.li
84e76f24b0 fix the issue of multiple calude using one server by claude code 2025-06-12 09:58:05 +08:00
musi
c9059f146d fix miss api 2025-06-10 21:43:01 +08:00
jinhui.li
2cc91ada5c add cli 2025-06-10 12:55:25 +08:00
jinhui.li
089654871c support plugins 2025-03-31 22:28:02 +08:00
jinhui.li
93fcd77544 support deepseek-v3-20250324 2025-03-25 14:51:28 +08:00