Luis Pater
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
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
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
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
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
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
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
TinyCoder
a7fc2ee4cf
refactor(image): avoid using json.Marshal
2025-12-25 14:21:01 +07:00
Luis Pater
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
7551faff79
Merge branch 'main' into plus
2025-12-24 22:27:12 +08:00
Luis Pater
b7409dd2de
Merge pull request #706 from router-for-me/log
...
Log
2025-12-24 22:24:39 +08:00
hkfires
5ba325a8fc
refactor(logging): standardize request id formatting and layout
2025-12-24 22:03:07 +08:00
Luis Pater
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
hkfires
99238a4b59
fix(logging): normalize warning level to warn
2025-12-24 21:11:37 +08:00
hkfires
6d43a2ff9a
refactor(logging): inline request id in log output
2025-12-24 21:07:18 +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
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
hkfires
2a6d8b78d4
feat(api): add endpoint to retrieve request logs by ID
2025-12-24 19:24:51 +08:00
TinyCoder
671558a822
fix(openai): add index field to image response for LiteLLM compatibility
...
LiteLLM's Pydantic model requires an index field in each image object.
Without it, responses fail validation with "images.0.index Field required".
2025-12-24 17:43:31 +07:00
Luis Pater
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
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
TinyCoder
c169b32570
refactor(kiro): Remove unused variables in OpenAI translator
...
Remove dead code that was never used:
- toolCallIDToName map: built but never read from
- seenToolCallIDs: declared but never populated, only suppressed with _
2025-12-24 15:10:35 +07:00
TinyCoder
36a512fdf2
fix(kiro): Handle tool results correctly in OpenAI format translation
...
Fix three issues in Kiro OpenAI translator that caused "Improperly formed request"
errors when processing LiteLLM-translated requests with tool_use/tool_result:
1. Skip merging tool role messages in MergeAdjacentMessages() to preserve
individual tool_call_id fields
2. Track pendingToolResults and attach to the next user message instead of
only the last message. Create synthetic user message when conversation
ends with tool results.
3. Insert synthetic user message with tool results before assistant messages
to maintain proper alternating user/assistant structure. This fixes the case
where LiteLLM translates Anthropic user messages containing only tool_result
blocks into tool role messages followed by assistant.
Adds unit tests covering all tool result handling scenarios.
2025-12-24 15:10:35 +07:00
hkfires
26fbb77901
refactor(sdk/auth): rename manager.go to conductor.go
2025-12-24 15:21:03 +08:00
NguyenSiTrung
a277302262
Merge remote-tracking branch 'upstream/main'
2025-12-24 10:54:09 +07:00
NguyenSiTrung
969c1a5b72
refactor: extract parseGeminiFamilyUsageDetail helper to reduce duplication
2025-12-24 10:22:31 +07:00
NguyenSiTrung
872339bceb
feat: add cached token parsing for Gemini API responses
2025-12-24 10:20:11 +07:00
Luis Pater
8fee16aecd
Merge PR #59 : v6.6.50 (resolve conflicts)
2025-12-24 11:06:10 +08:00
hkfires
007c3304f2
feat(logging): scope request ID tracking to AI API endpoints
2025-12-24 09:17:09 +08:00
hkfires
e76ba0ede9
feat(logging): implement request ID tracking and propagation
2025-12-24 08:32:17 +08:00
Luis Pater
c06ac07e23
Merge pull request #686 from ajkdrag/main
...
feat: regex support for model-mappings
2025-12-24 04:37:44 +08:00
Luis Pater
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
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
7569320770
Merge branch 'dev' into fix/antigravity-prompt-caching
2025-12-24 03:49:46 +08:00
Luis Pater
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
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
Joao
349b2ba3af
refactor: improve error handling and code quality
...
- Handle errors in promptInput instead of ignoring them
- Improve promptSelect to provide feedback on invalid input and re-prompt
- Use sentinel errors (ErrAuthorizationPending, ErrSlowDown) instead of
string-based error checking with strings.Contains
- Move hardcoded x-amz-user-agent header to idcAmzUserAgent constant
Addresses code review feedback from Gemini Code Assist.
2025-12-23 10:20:14 +00:00
Joao
98db5aabd0
feat: persist refreshed IDC tokens to auth file
...
Add persistRefreshedAuth function to write refreshed tokens back to the
auth file after inline token refresh. This prevents repeated token
refreshes on every request when the token expires.
Changes:
- Add persistRefreshedAuth() to kiro_executor.go
- Call persist after all token refresh paths (401, 403, pre-request)
- Remove unused log import from sdk/auth/kiro.go
2025-12-23 10:00:14 +00:00
Joao
7fd98f3556
feat: add IDC auth support with Kiro IDE headers
2025-12-23 08:18:10 +00:00