yuechenglong.5
194f66ca9c
feat(kiro): 添加后台令牌刷新通知机制
...
- 在 BackgroundRefresher 中添加 onTokenRefreshed 回调函数和并发安全锁
- 实现 WithOnTokenRefreshed 选项函数用于设置刷新成功回调
- 在 RefreshManager 中添加 SetOnTokenRefreshed 方法支持运行时更新回调
- 为 KiroExecutor 添加 reloadAuthFromFile 方法实现文件重新加载回退机制
- 在 Watcher 中实现 NotifyTokenRefreshed 方法处理刷新通知并更新内存Auth对象
- 通过 Service.GetWatcher 连接刷新器回调到 Watcher 通知链路
- 添加方案A和方案B双重保障解决后台刷新与内存对象时间差问题
2026-01-21 11:03:07 +08:00
781456868@qq.com
a9ee971e1c
fix(kiro): improve auto-refresh and IDC auth file handling
...
Amp-Thread-ID: https://ampcode.com/threads/T-019bdb94-80e3-7302-be0f-a69937826d13
Co-authored-by: Amp <amp@ampcode.com >
2026-01-20 21:57:45 +08:00
781456868@qq.com
87edc6f35e
Merge remote-tracking branch 'upstream/main'
2026-01-19 20:09:17 +08:00
781456868@qq.com
0e77e93e5d
feat: add Kiro OAuth web, rate limiter, metrics, fingerprint, background refresh and model converter
2026-01-18 15:04:29 +08:00
clstb
b4e070697d
feat: support github copilot in management ui
2026-01-17 17:22:45 +01:00
Luis Pater
015a3e8a83
Merge branch 'router-for-me:main' into main
2026-01-17 05:17:38 +08:00
Luis Pater
384578a88c
feat(cliproxy, gemini): improve ID matching logic and enrich normalized model output
...
- Enhanced ID matching in `cliproxy` by adding additional conditions to better handle ID equality cases.
- Updated `gemini` handlers to include `displayName` and `description` in normalized models for enriched metadata.
2026-01-17 04:44:09 +08:00
Luis Pater
1afc3a5f65
feat(auth): add support for kiro OAuth model alias
...
- Introduced `kiro` channel and alias resolution in `oauth_model_alias` logic.
- Updated supported channels documentation and examples to include `kiro` and `github-copilot`.
- Enhanced unit tests to validate `kiro` alias functionality.
2026-01-16 12:47:05 +08:00
Luis Pater
c29839d2ed
Merge remote-tracking branch 'origin/main' into pr-104
...
# Conflicts:
# config.example.yaml
# internal/config/config.go
# sdk/cliproxy/auth/model_name_mappings.go
2026-01-16 09:40:07 +08:00
hkfires
fe5b3c80cb
refactor(config): rename oauth-model-mappings to oauth-model-alias
2026-01-15 18:03:26 +08:00
hkfires
8bc6df329f
fix(auth): apply API key model mapping to request model
2026-01-15 13:06:41 +08:00
hkfires
847be0e99d
fix(auth): use base model name for auth matching by stripping suffix
2026-01-15 13:06:41 +08:00
hkfires
f6a2d072e6
refactor(thinking): refine configuration logging
2026-01-15 13:06:41 +08:00
hkfires
2262479365
refactor(thinking): remove legacy utilities and simplify model mapping
2026-01-15 13:06:40 +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
Luis Pater
9b33fbf1cd
Merge branch 'router-for-me:main' into main
2026-01-13 03:15:46 +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
Woohyun Rho
8f6740fcef
fix(iflow): add missing applyExcludedModels call for iflow provider
2026-01-11 03:01:50 +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
a9823ba58a
Merge branch 'router-for-me:main' into main
2026-01-10 16:27:52 +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
89e34bf1e6
Merge pull request #82 from FakerL/feat/kiro-oauth-model-mappings
...
feat(kiro): add OAuth model name mappings support for Kiro
2026-01-10 05:43:16 +08:00
Luis Pater
514b9bf9fc
Merge origin/main into pr-92
2026-01-10 01:12:22 +08:00
Luis Pater
1906ebcfce
Merge branch 'main' into plus
2026-01-09 21:52:24 +08:00
hkfires
ee62ef4745
refactor(logging): clean up oauth logs and debugs
2026-01-09 11:20:55 +08:00
Luis Pater
a2eba2cdf5
Merge pull request #763 from mvelbaum/feature/improve-oauth-use-logging
...
feat(logging): disambiguate OAuth credential selection in debug logs
2026-01-09 04:43:21 +08:00
Zhi Yang
08e8fddf73
feat(kiro): add OAuth model name mappings support for Kiro
...
Add Kiro to the list of supported channels for OAuth model name mappings,
allowing users to map Kiro model IDs (e.g., kiro-claude-opus-4-5) to
canonical model names (e.g., claude-opus-4-5-20251101).
The Kiro case is implemented as a separate switch block to keep it
isolated from upstream CLIProxyAPI providers, making future merges
from the upstream repository cleaner.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-05 07:32:08 +00:00
Luis Pater
771fec9447
Merge branch 'main' into plus
2026-01-04 01:38:40 +08:00
Luis Pater
44b6c872e2
feat(config): add support for Fork in OAuth model mappings with alias handling
...
Implemented `Fork` flag in `ModelNameMapping` to allow aliases as additional models while preserving the original model ID. Updated the `applyOAuthModelMappings` logic, added tests for `Fork` behavior, and updated documentation and examples accordingly.
2026-01-04 01:18:29 +08:00
Luis Pater
7a77b23f2d
feat(executor): add token refresh timeout and improve context handling during refresh
...
Introduced `tokenRefreshTimeout` constant for token refresh operations and enhanced context propagation for `refreshToken` by embedding roundtrip information if available. Adjusted `refreshAuth` to ensure default context initialization and handle cancellation errors appropriately.
2026-01-04 00:26:08 +08:00
Luis Pater
4eaf769894
Merge branch 'router-for-me:main' into main
2026-01-03 04:55:26 +08:00
Luis Pater
e02ceecd35
feat(registry): introduce ModelRegistryHook for monitoring model registrations and unregistrations
...
Added support for external hooks to observe model registry events using the `ModelRegistryHook` interface. Implemented thread-safe, non-blocking execution of hooks with panic recovery. Comprehensive tests added to verify hook behavior during registration, unregistration, blocking, and panic scenarios.
2026-01-02 23:18:40 +08:00
Luis Pater
ba486ca6b7
Merge branch 'router-for-me:main' into main
2026-01-01 21:03:16 +08:00
Luis Pater
8d15723195
feat(registry): add GetAvailableModelsByProvider method for retrieving models by provider
2025-12-31 23:37:46 +08:00
hkfires
89db4e9481
fix(thinking): use model alias for thinking config resolution in mapped models
2025-12-31 17:09:22 +08:00
Luis Pater
e85c9d9322
Merge branch 'main' into plus
2025-12-30 23:33:35 +08:00
hkfires
96340bf136
refactor(executor): resolve upstream model at conductor level before execution
2025-12-30 19:31:54 +08:00
hkfires
ce7474d953
feat(cliproxy): propagate thinking support metadata to aliased models
2025-12-30 15:16:54 +08:00
hkfires
70fdd70b84
refactor(cliproxy): extract generic buildConfigModels function for model info generation
2025-12-30 13:35:22 +08:00
hkfires
08ab6a7d77
feat(gemini): add per-key model alias support for Gemini provider
2025-12-30 13:27:57 +08:00
Luis Pater
5c95129884
Merge branch 'router-for-me:main' into main
2025-12-30 11:48:29 +08:00
hkfires
d443c86620
refactor(config): rename model mapping fields from from/to to name/alias
2025-12-30 11:07:59 +08:00
hkfires
7be3f1c36c
refactor(config): rename model-name-mappings to oauth-model-mappings
2025-12-30 11:07:58 +08:00
Luis Pater
50e6d845f4
feat(cliproxy): introduce global model name mappings for improved aliasing and routing
2025-12-30 08:13:06 +08:00
Michael Velbaum
cb3bdffb43
refactor(logging): streamline auth selection debug messages
...
Reduce duplicate Debugf calls by appending proxy info via an optional suffix and keep the debug-level guard inside the helper.
2025-12-28 16:10:11 +02:00
Michael Velbaum
48f19aab51
refactor(logging): pass request entry into auth selection log
...
Avoid re-creating the request-scoped log entry in the helper and use a switch for account type dispatch.
2025-12-28 15:51:11 +02:00
Michael Velbaum
48f6d7abdf
refactor(logging): dedupe auth selection debug logs
...
Extract repeated debug logging for selected auth credentials into a helper so execute, count, and stream paths stay consistent.
2025-12-28 15:42:35 +02:00