hkfires
e54d2f6b2a
feat(logging): add version info to request log output
2025-12-07 12:49:14 +08:00
huynguyen03.dev
bfc738b76a
refactor: remove duplicate provider check in gemini v1beta1 route
...
Simplifies routing logic by delegating all provider/mapping/proxy
decisions to FallbackHandler. Previously, the route checked for
provider/mapping availability before calling the handler, then
FallbackHandler performed the same checks again.
Changes:
- Remove model extraction and provider checking from route (lines 182-201)
- Route now only checks if request is POST with /models/ path
- FallbackHandler handles provider -> mapping -> proxy fallback
- Remove unused internal/util import
Benefits:
- Eliminates duplicate checks (addresses PR review feedback #2 )
- Centralizes all provider/mapping logic in FallbackHandler
- Reduces routing code by ~20 lines
- Aligns with how other /api/provider routes work
Performance: No impact (checks still happen once in FallbackHandler)
2025-12-07 10:54:58 +07:00
huynguyen03.dev
396899a530
refactor: improve gemini bridge testability and code quality
...
- Change createGeminiBridgeHandler to accept gin.HandlerFunc instead of *gemini.GeminiAPIHandler
This allows tests to inject mock handlers instead of duplicating bridge logic
- Replace magic number 8 with len(modelsPrefix) for better maintainability
- Remove redundant test case that doesn't test edge case in production
- Update routes.go to pass geminiHandlers.GeminiHandler directly
Addresses PR review feedback on test architecture and code clarity.
Amp-Thread-ID: https://ampcode.com/threads/T-1ae2c691-e434-4b99-a49a-10cabd3544db
2025-12-07 10:15:42 +07:00
Luis Pater
f383840cf9
fix(antigravity): update toolNode role from "tool" to "user" in chat completions
v6.5.52
2025-12-07 02:37:46 +08:00
Luis Pater
fd29ab418a
Fixed : #424
...
**feat(antigravity): add support for maxOutputTokens and refine Claude model handling**
v6.5.51
2025-12-07 01:55:57 +08:00
Luis Pater
7a628426dc
Fixed : #433
...
refactor(translator): normalize finish reason casing across all OpenAI response handlers
v6.5.50
2025-12-07 01:48:24 +08:00
Luis Pater
56b4d7a76e
docs(readme): add ProxyPal CLIProxyAPI GUI to project list
2025-12-07 01:13:30 +08:00
Luis Pater
b211c3546d
Merge pull request #429 from heyhuynhgiabuu/feature/add-proxypal
...
docs: add ProxyPal to 'Who is with us?' section
2025-12-07 01:10:44 +08:00
huynguyen03.dev
edc654edf9
refactor: simplify provider check logic in amp routes
...
Amp-Thread-ID: https://ampcode.com/threads/T-a18fd71c-32ce-4c29-93d7-09f082740e51
2025-12-06 22:07:40 +07:00
huynguyen03.dev
08586334af
fix(amp): pass mapped model to gemini bridge via context
...
Gemini handler extracts model from URL path, not JSON body, so
rewriting the request body alone wasn't sufficient for model mapping.
- Add MappedModelContextKey constant for context passing
- Update routes.go to use NewFallbackHandlerWithMapper
- Add check for valid mapping before routing to local handler
- Add tests for gemini bridge model mapping
2025-12-06 18:59:44 +07:00
Luis Pater
7ea14479fb
Merge pull request #428 from router-for-me/amp
...
feat(amp): add response rewriter for model name substitution in responses
v6.5.49
2025-12-06 15:14:10 +08:00
hkfires
54af96d321
fix(amp): restore request body before fallback handler execution
2025-12-06 15:09:25 +08:00
hkfires
22579155c5
refactor(amp): consolidate and simplify model mapping debug logs
2025-12-06 14:54:38 +08:00
Huynh Gia Buu
c04c3832a4
Update README.md
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-12-06 13:48:08 +07:00
huynhgiabuu
5ffbd54755
docs: add ProxyPal to 'Who is with us?' section
2025-12-06 13:45:49 +07:00
hkfires
5d12d4ce33
feat(amp): add response rewriter for model name substitution in responses
2025-12-06 14:15:44 +08:00
Luis Pater
0ebabf5152
feat(antigravity): add FetchAntigravityProjectID function and integrate project ID retrieval
v6.5.48
2025-12-06 01:32:12 +08:00
Luis Pater
d7564173dd
fix(antigravity): restore production base URL in the executor
v6.5.47
2025-12-06 01:11:37 +08:00
Luis Pater
c44c46dd80
Fixed : #421
...
feat(antigravity): implement project ID retrieval and integration in payload processing
v6.5.46
2025-12-06 00:40:55 +08:00
Luis Pater
412148af0e
feat(antigravity): add function ID to FunctionCall and FunctionResponse models
v6.5.45
2025-12-05 23:05:35 +08:00
Luis Pater
d28258501a
Merge pull request #423 from router-for-me/amp
...
fix(amp): suppress ErrAbortHandler panics in reverse proxy handler
v6.5.44
2025-12-05 21:36:01 +08:00
hkfires
55cd31fb96
fix(amp): suppress ErrAbortHandler panics in reverse proxy handler
2025-12-05 21:28:58 +08:00
Luis Pater
c5df8e7897
Merge pull request #422 from router-for-me/amp
...
Amp
v6.5.43
2025-12-05 21:25:43 +08:00
Luis Pater
d4d529833d
**refactor(antigravity): handle anyOf property, remove exclusiveMinimum, and comment unused prod URL**
2025-12-05 21:24:12 +08:00
hkfires
caa48e7c6f
fix(amp): improve proxy state management and request logging behavior
2025-12-05 21:09:53 +08:00
hkfires
acdfb3bceb
feat(amp): add root-level /threads routes for CLI compatibility
2025-12-05 18:14:10 +08:00
hkfires
89d68962b1
fix(amp): filter amp request logging to only provider endpoint
2025-12-05 18:14:09 +08:00
Luis Pater
361443db10
**feat(api): add GetLatestVersion endpoint to fetch latest release version from GitHub**
v6.5.42
2025-12-05 10:29:12 +08:00
Luis Pater
d6352dd4d4
**feat(util): add DeleteKey function and update antigravity executor for Claude model compatibility**
2025-12-05 01:55:45 +08:00
Luis Pater
a7eeb06f3d
Merge pull request #418 from router-for-me/amp
...
Amp
v6.5.41
2025-12-05 00:43:15 +08:00
hkfires
9426be7a5c
fix(amp): update log message wording for disabled proxy state
2025-12-04 21:36:16 +08:00
hkfires
4a135f1986
feat(amp): add hot-reload support for upstream URL and localhost restriction
2025-12-04 21:30:59 +08:00
hkfires
c4c02f4ad0
feat(amp): add partial reload support with config change detection
2025-12-04 21:30:59 +08:00
Luis Pater
b87b9b455f
Merge pull request #416 from router-for-me/amp
...
Amp
2025-12-04 20:52:33 +08:00
hkfires
db03ae9663
feat(watcher): add AmpCode config change detection
2025-12-04 19:50:54 +08:00
hkfires
969ff6bb68
fix(amp): update explicit API key on config change
2025-12-04 19:32:44 +08:00
Luis Pater
bceecfb2e3
Fixed : #414
...
**refactor(gemini): comment out unused CLI preview entry**
v6.5.40
2025-12-04 17:55:13 +08:00
Luis Pater
6a2906e3e5
**feat(antigravity): add support for Claude-Opus-4-5-Thinking model**
v6.5.39
2025-12-04 16:13:13 +08:00
Luis Pater
d72886c801
Merge pull request #405 from thurstonsand/fix/amp-missing-proxy-routes
...
fix(amp): add missing /auth/* and /api/tab/* proxy routes for AMP CLI
2025-12-03 22:23:41 +08:00
Luis Pater
6efba3d829
Merge pull request #406 from router-for-me/api
...
refactor(api): remove legacy generative-language-api-key endpoints and duplicate GetConfigYAML
2025-12-03 22:21:15 +08:00
Luis Pater
897c40bed8
feat(registry): add DeepSeek-V3.2-Chat model definition
...
Add new DeepSeek-V3.2-Chat model to the registry with standard chat configuration, positioned before the experimental variant for better organization.
v6.5.38
2025-12-03 21:34:50 +08:00
Thurston Sandberg
373ea8d7e4
fix(logging): handle nil caller in LogFormatter to prevent panic
2025-12-03 05:54:38 -05:00
hkfires
b5de004c01
refactor(api): remove legacy generative-language-api-key endpoints and duplicate GetConfigYAML
2025-12-03 18:35:08 +08:00
Thurston Sandberg
94ec772521
test(amp): add tests for /auth/* and /api/tab/* routes
2025-12-03 05:03:25 -05:00
Thurston Sandberg
e216d26731
fix(amp): add missing /auth/* and /api/tab/* proxy routes
2025-12-03 04:40:32 -05:00
Luis Pater
6eb94dac33
Merge pull request #404 from router-for-me/config
...
Legacy Config Migration and Amp Consolidation
v6.5.37
2025-12-03 16:11:06 +08:00
hkfires
c4a5be6edf
style(amp): standardize log message capitalization
2025-12-03 13:53:18 +08:00
hkfires
651179a642
refactor(config): add detailed logging for legacy configuration migration
2025-12-03 13:39:10 +08:00
hkfires
8c42b21e66
refactor(config): improve OpenAI compatibility target matching logic
2025-12-03 12:41:17 +08:00
hkfires
b693d632d2
docs(config): comment out example API key configurations
2025-12-03 12:31:41 +08:00