Luis Pater and GitHub
1a99cfded4
Merge branch 'router-for-me:main' into main
2025-12-30 00:38:41 +08:00
Luis Pater and GitHub
530273906b
Merge pull request #776 from router-for-me/fix-ag-claude
...
fix(antigravity): inject required placeholder when properties exist w…
2025-12-30 00:37:01 +08:00
Luis Pater and GitHub
cf369d4684
Merge branch 'router-for-me:main' into main
2025-12-29 22:41:44 +08:00
Luis Pater
d8fc485513
fix(translators): correct key path for system_instruction.parts in Claude request logic
2025-12-29 11:54:26 +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 and GitHub
e3d8d726e6
Merge branch 'router-for-me:main' into main
2025-12-28 15:09:33 +08:00
Luis Pater and GitHub
457924828a
Merge pull request #757 from ben-vargas/fix-thinking-toolchoice-conflict
...
Fix: disable thinking when tool_choice forces tool use
2025-12-28 14:04:30 +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 and GitHub
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 and GitHub
d06e2dc83c
Merge branch 'router-for-me:main' into main
2025-12-28 02:10:16 +08:00
Luis Pater and GitHub
336867853b
Merge pull request #756 from leaph/check-ai-thinking-settings
...
feat(iflow): add model-specific thinking configs for GLM-4.7 and Mini…
2025-12-28 02:08:27 +08:00
Luis Pater and GitHub
d222469b44
Update issue templates
2025-12-28 01:22:42 +08:00
Luis Pater and GitHub
790a17ce98
Merge pull request #70 from router-for-me/plus
...
v6.6.60
2025-12-28 00:57:14 +08:00
Luis Pater and GitHub
d473c952fb
Merge branch 'main' into plus
2025-12-28 00:56:04 +08:00
Luis Pater
7646a2b877
Fixed : #749
...
fix(translators): ensure `gjson.String` content is non-empty before setting `parts` in OpenAI request logic
2025-12-28 00:54:26 +08:00
Luis Pater and GitHub
62090f2568
Merge pull request #750 from router-for-me/config
...
fix(config): preserve original config structure and avoid default value pollution
2025-12-27 22:10:01 +08:00
Luis Pater and GitHub
d35152bbef
Merge branch 'router-for-me:main' into main
2025-12-27 22:03:50 +08:00
Luis Pater
c281f4cbaf
Fixed : #747
...
fix(translators): rename and integrate `usageMetadata` as `cpaUsageMetadata` in Claude processing logic
2025-12-27 22:02:11 +08:00
Luis Pater and GitHub
3f50da85c1
Merge pull request #745 from router-for-me/auth
...
fix(auth): make provider rotation atomic
2025-12-27 13:01:22 +08:00
Luis Pater and GitHub
60936b5185
Merge branch 'router-for-me:main' into main
2025-12-27 03:57:03 +08:00
Luis Pater
72274099aa
Fixed : #738
...
fix(translators): refine prompt token calculation by incorporating cached tokens in Claude response handling
2025-12-27 03:56:11 +08:00
Luis Pater and GitHub
b7f7b3a1d8
Merge branch 'router-for-me:main' into main
2025-12-27 01:26:33 +08:00
Luis Pater
dcae098e23
Fixed : #736
...
fix(translators): handle gjson string types in Claude request processing to ensure consistent content parsing
2025-12-27 01:25:47 +08:00
Luis Pater and GitHub
618606966f
Merge pull request #68 from router-for-me/plus
...
v6.6.56
2025-12-26 12:14:42 +08:00
Luis Pater and GitHub
05f249d77f
Merge branch 'main' into plus
2025-12-26 12:14:35 +08:00
Luis Pater and GitHub
2eb05ec640
Merge pull request #727 from nguyenphutrong/main
...
docs: add Quotio to community projects
2025-12-26 11:53:09 +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 and GitHub
9fe6a215e6
Merge branch 'router-for-me:main' into main
2025-12-26 05:10:19 +08:00
Luis Pater
33e53a2a56
fix(translators): ensure correct handling and output of multimodal assistant content across request handlers
2025-12-26 05:08:04 +08:00
Luis Pater and GitHub
cd5b80785f
Merge pull request #722 from hungthai1401/bugfix/remove-extra-args
...
Fixed incorrect function signature call to `NewBaseAPIHandlers`
2025-12-26 02:56:56 +08:00
Luis Pater and GitHub
3f949b7f84
Merge pull request #704 from tinyc0der/add-index
...
fix(openai): add index field to image response for LiteLLM compatibility
2025-12-25 21:35:12 +08:00
Luis Pater and GitHub
cf8b2dcc85
Merge pull request #67 from router-for-me/plus
...
v6.6.54
2025-12-25 21:07:45 +08:00
Luis Pater and GitHub
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
8e749ac22d
docs(readme): update GLM model version from 4.6 to 4.7 in README and README_CN
2025-12-24 23:59:48 +08:00
Luis Pater
69e09d9bc7
docs(readme): update GLM model version from 4.6 to 4.7 in README and README_CN
2025-12-24 23:46:27 +08:00
Luis Pater and GitHub
ed57d82bc1
Merge branch 'router-for-me:main' into main
2025-12-24 23:31:09 +08:00
Luis Pater
06ad527e8c
Fixed : #696
...
fix(translators): adjust prompt token calculation by subtracting cached tokens across Gemini, OpenAI, and Claude handlers
2025-12-24 23:29:18 +08:00
Luis Pater and GitHub
7af5a90a0b
Merge pull request #65 from router-for-me/plus
...
v6.6.52
2025-12-24 22:28:45 +08:00
Luis Pater and GitHub
7551faff79
Merge branch 'main' into plus
2025-12-24 22:27:12 +08:00
Luis Pater and GitHub
b7409dd2de
Merge pull request #706 from router-for-me/log
...
Log
2025-12-24 22:24:39 +08:00
Luis Pater and GitHub
d502840f91
Merge pull request #695 from NguyenSiTrung/main
...
feat: add cached token parsing for Gemini , Antigravity API responses
2025-12-24 21:58:55 +08:00
Luis Pater
cdb9c2e6e8
Merge remote-tracking branch 'origin/main' into router-for-me/main
2025-12-24 20:18:53 +08:00
Luis Pater and GitHub
3faa1ca9af
Merge pull request #700 from router-for-me/log
...
refactor(sdk/auth): rename manager.go to conductor.go
2025-12-24 19:36:24 +08:00
Luis Pater
9d975e0375
feat(models): add support for GLM-4.7 and MiniMax-M2.1
2025-12-24 19:30:57 +08:00
Luis Pater and GitHub
6b80ec79a0
Merge pull request #61 from tinyc0der/fix/kiro-tool-results
...
fix(kiro): Handle tool results correctly in OpenAI format translation
2025-12-24 17:23:41 +08:00
Luis Pater and GitHub
d3f4783a24
Merge pull request #57 from PancakeZik/my-idc-changes
...
feat: add AWS Identity Center (IDC) authentication support
2025-12-24 17:20:01 +08:00
Luis Pater and GitHub
1cb6bdbc87
Merge pull request #62 from router-for-me/plus
...
v6.6.50
2025-12-24 17:14:05 +08:00
Luis Pater and GitHub
96ddfc1f24
Merge branch 'main' into plus
2025-12-24 17:13:51 +08:00
Luis Pater and GitHub
5dc0dbc7aa
Merge pull request #697 from Cubence-com/main
...
docs(readme): add Cubence sponsor and fix PackyCode link
2025-12-24 11:19:32 +08:00
Luis Pater and GitHub
ee6fc4e8a1
Merge pull request #60 from router-for-me/pr-59-resolve-conflicts
...
v6.6.50(解决 #59 冲突)
2025-12-24 11:12:09 +08:00
Luis Pater
8fee16aecd
Merge PR #59 : v6.6.50 (resolve conflicts)
2025-12-24 11:06:10 +08:00
Luis Pater and GitHub
2b7ba54a2f
Merge pull request #688 from router-for-me/feature/request-id-tracking
...
feat(logging): implement request ID tracking and propagation
2025-12-24 10:54:13 +08:00
Luis Pater and GitHub
c06ac07e23
Merge pull request #686 from ajkdrag/main
...
feat: regex support for model-mappings
2025-12-24 04:37:44 +08:00
Luis Pater and GitHub
e592a57458
Merge branch 'router-for-me:main' into main
2025-12-24 04:25:06 +08:00
Luis Pater
66769ec657
fix(translators): update role from tool to user in Gemini and Gemini-CLI requests
2025-12-24 04:24:07 +08:00
Luis Pater
f413feec61
refactor(handlers): streamline error and data channel handling in streaming logic
...
Improved consistency across OpenAI, Claude, and Gemini handlers by replacing initial `select` statement with a `for` loop for better readability and error-handling robustness.
2025-12-24 04:07:24 +08:00
Luis Pater and GitHub
2e538e3486
Merge pull request #661 from jroth1111/fix/streaming-bootstrap-forwarder
...
fix: improve streaming bootstrap and forwarding
2025-12-24 03:51:40 +08:00
Luis Pater and GitHub
9617a7b0d6
Merge pull request #621 from dacsang97/fix/antigravity-prompt-caching
...
Antigravity Prompt Caching Fix
2025-12-24 03:50:25 +08:00
Luis Pater and GitHub
7569320770
Merge branch 'dev' into fix/antigravity-prompt-caching
2025-12-24 03:49:46 +08:00
Luis Pater and GitHub
a862984dca
Merge pull request #58 from router-for-me/plus
...
v6.6.48
2025-12-23 22:34:15 +08:00
Luis Pater and GitHub
f0365f0465
Merge branch 'main' into plus
2025-12-23 22:34:08 +08:00
Luis Pater
6d1e20e940
fix(claude_executor): update header logic for API key handling
...
Refined header assignment to use `x-api-key` for Anthropic API requests, ensuring correct authorization behavior based on request attributes and URL validation.
2025-12-23 22:30:25 +08:00
Luis Pater and GitHub
e52b542e22
Merge pull request #684 from packyme/main
...
docs(readme): add PackyCode sponsor
2025-12-23 17:19:25 +08:00
Luis Pater and GitHub
e8de87ee90
Merge branch 'router-for-me:main' into main
2025-12-23 08:48:29 +08:00
Luis Pater
4e572ec8b9
fix(translators): handle string system instructions in Claude translators
...
Updated Antigravity, Gemini, and Gemini-CLI translators to process `systemResult` of type `string` for system instructions. Ensures properly formatted JSON with dynamic content assignment.
2025-12-23 08:44:36 +08:00
Luis Pater and GitHub
6c7f18c448
Merge branch 'router-for-me:main' into main
2025-12-23 03:50:35 +08:00
Luis Pater
24bc9cba67
Fixed : #639
...
fix(antigravity): validate function arguments before serialization
Ensure `function.arguments` is a valid JSON before setting raw bytes, fallback to setting as parameterized content if invalid.
2025-12-23 03:49:45 +08:00
Luis Pater and GitHub
97356b1a04
Merge branch 'router-for-me:main' into main
2025-12-23 03:17:44 +08:00
Luis Pater
1084b53fba
Fixed : #655
...
refactor(antigravity): clean up tool key filtering and improve signature caching logic
2025-12-23 03:16:51 +08:00
Luis Pater and GitHub
b1aecc2bf1
Merge branch 'router-for-me:main' into main
2025-12-23 02:49:37 +08:00
Luis Pater
83b90e106f
refactor(antigravity): add sandbox URL constant and update base URLs routine
2025-12-23 02:47:56 +08:00
Luis Pater and GitHub
f52114dab2
Merge branch 'router-for-me:main' into main
2025-12-23 02:26:33 +08:00
Luis Pater
5106caf641
Fixed : #654
...
feat: handle array input for system instructions in translators
Enhanced Gemini, Gemini-CLI, and Antigravity translators to process array content for system instructions. Adds support for assigning roles and handling multiple content parts dynamically.
2025-12-23 02:24:26 +08:00
Luis Pater and GitHub
12370ee84e
Merge branch 'router-for-me:main' into main
2025-12-22 22:53:29 +08:00
Luis Pater
b84ccc6e7a
feat: add unit tests for routing strategies and implement dynamic selector updates
...
Added comprehensive tests for `FillFirstSelector` and `RoundRobinSelector` to ensure proper behavior, including deterministic, cyclical, and concurrent scenarios. Introduced dynamic routing strategy updates in `service.go`, normalizing strategies and seamlessly switching between `fill-first` and `round-robin`. Updated `Manager` to support selector changes via the new `SetSelector` method.
2025-12-22 22:52:23 +08:00
Luis Pater and GitHub
e19ddb53e7
Merge pull request #663 from jroth1111/feat/fill-first-selector
...
feat: add fill-first routing strategy
2025-12-22 22:26:32 +08:00
Luis Pater and GitHub
5f65dd5bb4
Merge branch 'router-for-me:main' into main
2025-12-22 16:58:26 +08:00
Luis Pater and GitHub
27b43ed63f
Merge pull request #658 from moxi000/fix-responses-convert
...
Fix responses-format handling for chat completions(Support Cursor)
2025-12-22 16:47:46 +08:00
Luis Pater
a86d501dc2
refactor: replace json.Marshal and json.Unmarshal with sjson and gjson
...
Optimized the handling of JSON serialization and deserialization by replacing redundant `json.Marshal` and `json.Unmarshal` calls with `sjson` and `gjson`. Introduced a `marshalJSONValue` utility for compact JSON encoding, improving performance and code simplicity. Removed unused `encoding/json` imports.
2025-12-22 11:44:06 +08:00
Luis Pater and GitHub
e755e567ea
Merge branch 'router-for-me:main' into main
2025-12-21 19:54:13 +08:00
Luis Pater and GitHub
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 and GitHub
63908869f6
Merge pull request #611 from soilSpoon/feature/antigravity
...
feat(antigravity): Improve Claude model compatibility
2025-12-21 16:27:29 +08:00
Luis Pater and GitHub
db491c8f9b
Merge branch 'router-for-me:main' into main
2025-12-21 16:19:04 +08:00
Luis Pater
f6d625114c
feat(logging): revamp request logger to support streaming and temporary file spooling
...
This update enhances the `FileRequestLogger` by introducing support for spooling large request and response bodies to temporary files, reducing memory consumption. It adds atomic requestLogID generation for sequential log naming and new methods for non-streaming/streaming log assembly. Also includes better error handling during logging and temp file cleanups.
2025-12-21 16:17:48 +08:00
Luis Pater and GitHub
fcd6475377
Merge pull request #646 from router-for-me/amp
...
fix(amp): add /settings routes to proxy
2025-12-21 15:57:41 +08:00
Luis Pater and GitHub
293cc8c1a3
Merge branch 'router-for-me:main' into main
2025-12-21 03:39:31 +08:00
Luis Pater
453e744abf
Fixed : #642
...
fix: remove unsupported fields `type` and `cache_control` across translators
2025-12-21 03:38:38 +08:00
Luis Pater
653439698e
Fixed : #606
...
fix: unify response field naming across translators
Standardize `text` to `delta` and add missing `output` field in all response payloads for consistency across OpenAI, Claude, and Gemini translators.
2025-12-21 03:13:58 +08:00
Luis Pater and GitHub
5418bbc338
Merge branch 'router-for-me:main' into main
2025-12-20 23:40:09 +08:00
Luis Pater and GitHub
89254cfc97
Merge pull request #638 from neokotora/feat/add-gemini-3-flash
...
fix: add gemini-3-flash-preview model definition in GetGeminiModels
2025-12-20 23:36:57 +08:00
Luis Pater and GitHub
6bd9a034f7
Merge pull request #602 from ben-vargas/fix-antigravity-propertynames
...
fix: remove propertyNames from JSON schema for Gemini compatibility
2025-12-20 23:32:51 +08:00
Luis Pater and GitHub
26fc65b051
Merge pull request #633 from ben-vargas/fix-antigravity-applypayloadconfig
...
feat(antigravity): add payload config support to Antigravity executor
2025-12-20 23:30:47 +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
Luis Pater and GitHub
8fac6b147a
Merge branch 'router-for-me:main' into main
2025-12-20 17:13:30 +08:00
Luis Pater and GitHub
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
Luis Pater and GitHub
40d78908ed
Merge branch 'router-for-me:main' into main
2025-12-20 04:50:39 +08:00
Luis Pater
8a5db02165
Fixed : #607
...
refactor(config): re-export internal configuration types for SDK consumers
2025-12-20 04:49:02 +08:00