Luis Pater
514b9bf9fc
Merge origin/main into pr-92
2026-01-10 01:12:22 +08:00
Luis Pater
95f87d5669
Merge pull request #947 from pykancha/fix-memory-leak
...
Resolve memory leaks causing OOM in k8s deployment
2026-01-10 00:40:47 +08:00
Luis Pater
1906ebcfce
Merge branch 'main' into plus
2026-01-09 21:52:24 +08:00
hemanta212
47dacce6ea
fix(server): resolve memory leaks causing OOM in k8s deployment
...
- usage/logger_plugin: cap modelStats.Details at 1000 entries per model
- cache/signature_cache: add background cleanup for expired sessions (10 min)
- management/handler: add background cleanup for stale IP rate-limit entries (1 hr)
- executor/cache_helpers: add mutex protection and TTL cleanup for codexCacheMap (15 min)
- executor/codex_executor: use thread-safe cache accessors
Add reproduction tests demonstrating leak behavior before/after fixes.
Amp-Thread-ID: https://ampcode.com/threads/T-019ba0fc-1d7b-7338-8e1d-ca0520412777
Co-authored-by: Amp <amp@ampcode.com >
2026-01-09 13:33:46 +05:45
Luis Pater
ed28b71e87
refactor(amp): remove duplicate comments in response rewriter
2026-01-09 08:21:13 +08:00
Luis Pater
af2efa6f7e
Merge pull request #605 from soilSpoon/feature/amp-compat
...
feature: Improves Amp client compatibility
2026-01-09 04:28:17 +08:00
Luis Pater
80f5523685
Merge branch 'router-for-me:main' into main
2026-01-07 01:24:12 +08:00
LTbinglingfeng
5e5d8142f9
fix(auth): error when antigravity refresh token missing during refresh
2026-01-07 01:09:50 +08:00
LTbinglingfeng
b01619b441
fix(management): refresh antigravity token for api-call $TOKEN$
2026-01-07 00:14:02 +08:00
Luis Pater
2331b9a2e7
Merge branch 'router-for-me:main' into main
2026-01-04 18:10:49 +08:00
Supra4E8C
cd22c849e2
feat(management): 更新OAuth模型映射的清理逻辑以增强数据安全性
2026-01-04 17:57:34 +08:00
Supra4E8C
f0e73efda2
feat(management): add vertex api key and oauth model mappings endpoints
2026-01-04 17:32:00 +08:00
Supra4E8C
3156109c71
feat(management): 支持管理接口调整日志大小/强制前缀/路由策略
2026-01-04 12:21:49 +08:00
Luis Pater
4eaf769894
Merge branch 'router-for-me:main' into main
2026-01-03 04:55:26 +08:00
Luis Pater
ebec293497
feat(api): integrate TokenStore for improved auth entry management
...
Replaced file-based auth entry counting with `TokenStore`-backed implementation, enhancing flexibility and context-aware token management. Updated related logic to reflect this change.
2026-01-03 04:53:47 +08:00
Luis Pater
5c95129884
Merge branch 'router-for-me:main' into main
2025-12-30 11:48:29 +08:00
Luis Pater
bc866bac49
fix(logging): refactor ConfigureLogOutput to accept config object and adjust log directory handling
2025-12-30 10:28:25 +08:00
Luis Pater
cf369d4684
Merge branch 'router-for-me:main' into main
2025-12-29 22:41:44 +08:00
hkfires
3099114cbb
refactor(api): simplify codex id token claims extraction
2025-12-29 19:48:02 +08:00
hkfires
8286caa366
feat(api): add id token claims extraction for codex auth entries
2025-12-29 16:34:16 +08:00
hkfires
225e2c6797
feat(amp): add per-client upstream API key mapping support
2025-12-29 12:26:25 +08:00
Luis Pater
ee171bc563
feat(api): add ManagementTokenRequester interface for management token request endpoints
2025-12-29 02:42:29 +08:00
Luis Pater
e3d8d726e6
Merge branch 'router-for-me:main' into main
2025-12-28 15:09:33 +08:00
Luis Pater
ade7194792
feat(management): add generic API call handler to management endpoints
2025-12-28 04:40:32 +08:00
Luis Pater
0f51e73baa
Merge branch 'router-for-me:main' into main
2025-12-28 03:07:58 +08:00
Luis Pater
3a436e116a
feat(cliproxy): implement model aliasing and hashing for Codex configurations, enhance request routing logic, and normalize Codex model entries
2025-12-28 03:06:51 +08:00
Luis Pater
05f249d77f
Merge branch 'main' into plus
2025-12-26 12:14:35 +08:00
Luis Pater
3ce0d76aa4
feat(usage): add import/export functionality for usage statistics and enhance deduplication logic
2025-12-26 11:49:51 +08:00
Luis Pater
8e24d9dc34
Merge branch 'main' into plus
2025-12-25 21:07:37 +08:00
Luis Pater
443c4538bb
feat(config): add commercial-mode to optimize HTTP middleware for lower memory usage
2025-12-25 21:05:01 +08:00
Luis Pater
cdb9c2e6e8
Merge remote-tracking branch 'origin/main' into router-for-me/main
2025-12-24 20:18:53 +08:00
hkfires
2a6d8b78d4
feat(api): add endpoint to retrieve request logs by ID
2025-12-24 19:24:51 +08:00
hkfires
26fbb77901
refactor(sdk/auth): rename manager.go to conductor.go
2025-12-24 15:21:03 +08:00
Luis Pater
8fee16aecd
Merge PR #59 : v6.6.50 (resolve conflicts)
2025-12-24 11:06:10 +08:00
hkfires
e76ba0ede9
feat(logging): implement request ID tracking and propagation
2025-12-24 08:32:17 +08:00
altamash
0c0aae1eac
Robust change detection: replaced string concat with struct-based compare in hasModelMappingsChanged; removed boolTo01.
...
• Performance: pre-allocate map and regex slice capacities in UpdateMappings.
• Verified with amp module tests (all passing)
2025-12-23 18:52:28 +05:30
altamash
5dcf7cb846
feat: regex support for model-mappings
2025-12-23 18:41:58 +05:30
Luis Pater
e755e567ea
Merge branch 'router-for-me:main' into main
2025-12-21 19:54:13 +08:00
Luis Pater
dbcbe48ead
Merge pull request #641 from router-for-me/url-OAuth-add-ter
...
OAuth and management
2025-12-21 17:25:24 +08:00
Luis Pater
db491c8f9b
Merge branch 'router-for-me:main' into main
2025-12-21 16:19:04 +08:00
hkfires
3fc410a253
fix(amp): add /settings routes to proxy
2025-12-21 12:51:35 +08:00
Supra4E8C
781bc1521b
fix(oauth): prevent stale session timeouts after login
...
- stop callback forwarders by instance to avoid cross-session shutdowns
- clear pending sessions for a provider after successful auth
2025-12-21 10:48:40 +08:00
Supra4E8C
24970baa57
management: allow prefix updates in provider PATCH handlers
2025-12-21 02:14:28 +08:00
Luis Pater
5418bbc338
Merge branch 'router-for-me:main' into main
2025-12-20 23:40:09 +08:00
Luis Pater
ed5ec5b55c
feat(amp): enhance model mapping and Gemini thinking configuration
...
This commit introduces several improvements to the AMP (Advanced Model Proxy) module:
- **Model Mapping Logic:** The `FallbackHandler` now uses a more robust approach for model mapping. It includes the extraction and preservation of dynamic "thinking suffixes" (e.g., `(xhigh)`) during mapping, ensuring that these configurations are correctly applied to the mapped model. A new `resolveMappedModel` function centralizes this logic for cleaner code.
- **ModelMapper Verification:** The `ModelMapper` in `model_mapping.go` now verifies that the target model of a mapping has available providers *after* normalizing it. This prevents mappings to non-existent or unresolvable models.
- **Gemini Thinking Configuration Cleanup:** In `gemini_thinking.go`, unnecessary `generationConfig.thinkingConfig.include_thoughts` and `generationConfig.thinkingConfig.thinkingBudget` fields are now deleted from the request body when applying Gemini thinking levels. This prevents potential conflicts or redundant configurations.
- **Testing:** A new test case `TestModelMapper_MapModel_TargetWithThinkingSuffix` has been added to `model_mapping_test.go` to specifically cover the preservation of thinking suffixes during model mapping.
2025-12-20 22:19:35 +08:00
Supra4E8C
93414f1baa
feat (auth): CLI OAuth supports pasting callback URLs to complete login
...
- Added callback URL resolution and terminal prompt logic
- Codex/Claude/iFlow/Antigravity/Gemini login supports callback URL or local callback completion
- Update Gemini login option signature and manager call
- CLI default prompt function is compatible with null input to continue waiting
2025-12-20 18:25:55 +08:00
Luis Pater
8fac6b147a
Merge branch 'router-for-me:main' into main
2025-12-20 17:13:30 +08:00
Luis Pater
10f8c795ac
Merge pull request #634 from router-for-me/amp
...
fix(amp): add /docs routes to proxy
2025-12-20 17:08:07 +08:00
Luis Pater
3e4858a624
feat(config): add log file size limit configuration #535
...
This commit introduces a new configuration option `logs-max-total-size-mb` that allows users to set a maximum total size (in MB) for log files in the logs directory. When this limit is exceeded, the oldest log files will be automatically deleted to stay within the specified size. Setting this value to 0 (the default) disables this feature. This change enhances log management by preventing excessive disk space usage.
2025-12-20 15:52:59 +08:00
hkfires
c84ff42bcd
fix(amp): add /docs routes to proxy
2025-12-20 10:15:25 +08:00