ChrAlpha
f4fcfc5867
feat(registry): add GPT-5.2-Codex model to GitHub Copilot provider
...
Add gpt-5.2-codex model definition to GetGitHubCopilotModels() function,
enabling access to OpenAI GPT-5.2 Codex through the GitHub Copilot API.
2026-01-15 14:14:09 +08:00
hkfires
5c40a2db21
refactor(thinking): simplify ModeNone and budget validation logic
2026-01-15 14:03:08 +08:00
Luis Pater
d6111344c5
Merge branch 'router-for-me:main' into main
2026-01-15 13:30:28 +08:00
Luis Pater
086eb3df7a
refactor(auth): simplify file handling logic and remove redundant comparison functions
...
feat(auth): fetch and update Antigravity project ID from metadata during filestore operations
- Added support to retrieve and update `project_id` using the access token if missing in metadata.
- Integrated HTTP client to fetch project ID dynamically.
- Enhanced metadata persistence logic.
2026-01-15 13:29:14 +08:00
hkfires
ee2976cca0
refactor(thinking): improve logging for user-defined models
2026-01-15 13:06:41 +08:00
hkfires
bcd4d9595f
fix(thinking): refine ModeNone handling based on provider capabilities
2026-01-15 13:06:41 +08:00
hkfires
5a77b7728e
refactor(thinking): improve budget clamping and logging with provider/model context
2026-01-15 13:06:41 +08:00
hkfires
1fbbba6f59
feat(logging): order log fields for improved readability
2026-01-15 13:06:41 +08:00
hkfires
f6a2d072e6
refactor(thinking): refine configuration logging
2026-01-15 13:06:41 +08:00
hkfires
ed8b0f25ee
fix(thinking): use LookupModelInfo for model data
2026-01-15 13:06:41 +08:00
hkfires
6e4a602c60
fix(thinking): map reasoning_effort to thinkingConfig
2026-01-15 13:06:40 +08:00
hkfires
2262479365
refactor(thinking): remove legacy utilities and simplify model mapping
2026-01-15 13:06:40 +08:00
hkfires
33d66959e9
test(thinking): remove legacy unit and integration tests
2026-01-15 13:06:40 +08:00
hkfires
7f1b2b3f6e
fix(thinking): improve model lookup and validation
2026-01-15 13:06:40 +08:00
hkfires
40ee065eff
fix(thinking): use static lookup to avoid alias issues
2026-01-15 13:06:40 +08:00
hkfires
a75fb6af90
refactor(antigravity): remove hardcoded model aliases
2026-01-15 13:06:39 +08:00
hkfires
72f2125668
fix(executor): properly handle thinking application errors
2026-01-15 13:06:39 +08:00
hkfires
e8f5888d8e
fix(thinking): fix auth matching for thinking suffix and json field conflicts
2026-01-15 13:06:39 +08:00
hkfires
0b06d637e7
refactor: improve thinking logic
2026-01-15 13:06:39 +08:00
Luis Pater
496f6770a5
Merge branch 'router-for-me:main' into main
2026-01-15 12:09:22 +08:00
Luis Pater
6f8a8f8136
feat(selector): add priority support for auth selection
2026-01-15 07:08:24 +08:00
Nova
f82f70df5c
fix(kiro): re-add kiro-auto to registry
...
Reference: https://github.com/router-for-me/CLIProxyAPIPlus/pull/16
Revert: a594338bc5
2026-01-15 03:26:22 +07:00
Luis Pater
a235fb1507
Merge branch 'main' into plus
2026-01-15 03:30:56 +08:00
Luis Pater
b163f8ed9e
Fixed : #1004
...
feat(translator): add function name to response output item serialization
- Included `item.name` in the serialized response output to enhance output item handling.
2026-01-15 03:27:00 +08:00
ZqinKing
83e5f60b8b
fix(kiro): scale description compression by needed size
...
Compute a size-reduction based keep ratio and use it to trim
tool descriptions, avoiding forced minimum truncation when the
target size already fits. This aligns compression with actual
payload reduction needs and prevents over-compression.
2026-01-14 16:22:46 +08:00
ZqinKing
5b433f962f
feat(kiro): 实现动态工具压缩功能
...
## 背景
当 Claude Code 发送过多工具信息时,可能超出 Kiro API 请求限制导致 500 错误。
现有的工具描述截断(KiroMaxToolDescLen = 10237)只能限制单个工具的描述长度,
无法解决整体工具列表过大的问题。
## 解决方案
实现动态工具压缩功能,采用两步压缩策略:
1. 先检查原始大小,超过 20KB 才进行压缩
2. 第一步:简化 input_schema,只保留 type/enum/required 字段
3. 第二步:按比例缩短 description(最短 50 字符)
4. 保留全部工具和 skills 可调用,不丢弃任何工具
## 新增文件
- internal/translator/kiro/claude/tool_compression.go
- calculateToolsSize(): 计算工具列表的 JSON 序列化大小
- simplifyInputSchema(): 简化 input_schema,递归处理嵌套 properties
- compressToolDescription(): 按比例压缩描述,支持 UTF-8 安全截断
- compressToolsIfNeeded(): 主压缩函数,实现两步压缩策略
- internal/translator/kiro/claude/tool_compression_test.go
- 完整的单元测试覆盖所有新增函数
- 测试 UTF-8 安全性
- 测试压缩效果
## 修改文件
- internal/translator/kiro/common/constants.go
- 新增 ToolCompressionTargetSize = 20KB (压缩目标大小阈值)
- 新增 MinToolDescriptionLength = 50 (描述最短长度)
- internal/translator/kiro/claude/kiro_claude_request.go
- 在 convertClaudeToolsToKiro() 函数末尾调用 compressToolsIfNeeded()
## 测试结果
- 70KB 工具压缩至 17KB (74.7% 压缩率)
- 所有单元测试通过
## 预期效果
- 80KB+ tools 压缩至 ~15KB
- 不影响工具调用功能
2026-01-14 11:07:07 +08:00
Luis Pater
a1da6ff5ac
Fixed : #499 #985
...
feat(oauth): add support for customizable OAuth callback ports
- Introduced `oauth-callback-port` flag to override default callback ports.
- Updated SDK and login flows for `iflow`, `gemini`, `antigravity`, `codex`, `claude`, and `openai` to respect configurable callback ports.
- Refactored internal OAuth servers to dynamically assign ports based on the provided options.
- Revised tests and documentation to reflect the new flag and behavior.
2026-01-14 04:29:15 +08:00
Luis Pater
9b33fbf1cd
Merge branch 'router-for-me:main' into main
2026-01-13 03:15:46 +08:00
Luis Pater
43652d044c
refactor(config): replace nonstream-keepalive with nonstream-keepalive-interval
...
- Updated `SDKConfig` to use `nonstream-keepalive-interval` (seconds) instead of the boolean `nonstream-keepalive`.
- Refactored handlers and logic to incorporate the new interval-based configuration.
- Updated config diff, tests, and example YAML to reflect the changes.
2026-01-13 03:14:38 +08:00
Luis Pater
b1b379ea18
feat(api): add non-streaming keep-alive support for idle timeout prevention
...
- Introduced `StartNonStreamingKeepAlive` to emit periodic blank lines during non-streaming responses.
- Added `nonstream-keepalive` configuration option in `SDKConfig`.
- Updated handlers to utilize `StartNonStreamingKeepAlive` and ensure proper cleanup.
- Extended config diff and tests to include `nonstream-keepalive` changes.
2026-01-13 02:36:07 +08:00
Luis Pater
94e979865e
Fixed : #897
...
refactor(executor): remove `prompt_cache_retention` from request payloads
2026-01-12 10:46:47 +08:00
Luis Pater
6c324f2c8b
Fixed : #936
...
feat(cliproxy): support multiple aliases for OAuth model mappings
- Updated mapping logic to allow multiple aliases per upstream model name.
- Adjusted `SanitizeOAuthModelMappings` to ensure aliases remain unique within channels.
- Added test cases to validate multi-alias scenarios.
- Updated example config to clarify multi-alias support.
2026-01-12 10:40:34 +08:00
Luis Pater
216dafe44b
Merge branch 'router-for-me:main' into main
2026-01-12 00:27:15 +08:00
Luis Pater
543dfd67e0
refactor(cache): remove max entries logic and extend signature TTL to 3 hours
2026-01-12 00:20:44 +08:00
Woohyun Rho
b477aff611
fix(login): use response project ID when API returns different project
2026-01-12 01:05:57 +09:00
hkfires
220ca45f74
fix(codex): only override instructions when upstream provides them
2026-01-11 15:52:21 +08:00
hkfires
70a82d80ac
fix(codex): only override instructions in responses for OpenCode UA
2026-01-11 15:19:37 +08:00
hkfires
ac626111ac
feat(codex): add OpenCode instructions based on user agent
2026-01-11 13:36:35 +08:00
Woohyun Rho
d829ac4cf7
docs(config): add github-copilot and kiro to oauth-excluded-models documentation
2026-01-11 02:48:05 +09:00
Woohyun Rho
f064f6e59d
feat(config): add github-copilot to oauth-model-mappings supported channels
2026-01-11 01:59:38 +09:00
Luis Pater
8f27fd5c42
feat(executor): add HttpRequest method with credential injection for GitHub Copilot and Kiro executors
2026-01-10 16:44:58 +08:00
Luis Pater
a9823ba58a
Merge branch 'router-for-me:main' into main
2026-01-10 16:27:52 +08:00
Luis Pater
8cfe26f10c
Merge branch 'sdk' into dev
2026-01-10 16:26:23 +08:00
Luis Pater
80db2dc254
Merge pull request #955 from router-for-me/api
...
feat(codex): add subscription date fields to ID token claims
2026-01-10 16:26:07 +08:00
Luis Pater
e8e3bc8616
feat(executor): add HttpRequest support across executors for better http request handling
2026-01-10 16:25:25 +08:00
Luis Pater
ab5f5386e4
Merge branch 'router-for-me:main' into main
2026-01-10 14:53:04 +08:00
Luis Pater
bc3195c8d8
refactor(logger): remove unnecessary request details limit logic
2026-01-10 14:46:59 +08:00
hkfires
6494330c6b
feat(codex): add subscription date fields to ID token claims
2026-01-10 11:15:20 +08:00
Luis Pater
514b9bf9fc
Merge origin/main into pr-92
2026-01-10 01:12:22 +08:00
Luis Pater
4d7f389b69
Fixed : #941
...
fix(translator): ensure fallback to valid originalRequestRawJSON in response handling
2026-01-10 01:01:09 +08:00