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
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
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
2025-12-06 01:32:12 +08:00
Luis Pater
d7564173dd
fix(antigravity): restore production base URL in the executor
2025-12-06 01:11:37 +08:00
Luis Pater
c44c46dd80
Fixed : #421
...
feat(antigravity): implement project ID retrieval and integration in payload processing
2025-12-06 00:40:55 +08:00
Luis Pater
412148af0e
feat(antigravity): add function ID to FunctionCall and FunctionResponse models
2025-12-05 23:05:35 +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
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**
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
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
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**
2025-12-04 17:55:13 +08:00
Luis Pater
6a2906e3e5
**feat(antigravity): add support for Claude-Opus-4-5-Thinking model**
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.
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
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
b5033c22d8
refactor(config): auto-persist migrated legacy configuration fields
2025-12-03 12:26:04 +08:00
hkfires
df0fd1add1
refactor(config): remove deprecated AMP configuration keys during save
2025-12-03 11:42:15 +08:00
hkfires
b6bdbe78ef
refactor(config): relocate legacy migration helpers to end of file
2025-12-03 11:23:11 +08:00
hkfires
06c0d2bab2
refactor(config): remove deprecated legacy API key fields
2025-12-03 11:01:56 +08:00
hkfires
bd1678457b
refactor(config): consolidate Amp settings into AmpCode struct
2025-12-03 10:42:28 +08:00
Luis Pater
8b13c91132
**docs(internal): add Codex instruction guides for GPT-5 CLI**
...
- Added `gpt_5_1_prompt.md` and `gpt_5_codex_prompt.md` to document Codex instruction guidelines.
- These detail the behavior, constraints, and execution policies for GPT-5-based Codex agents in the CLI environment.
2025-12-03 07:23:01 +08:00
Luis Pater
e93f87294a
refactor(antigravity): uncomment prod environment URL in fallback chain
2025-12-02 22:47:18 +08:00
Luis Pater
a67b6811d1
Fixed : #397
...
fix(auth): use proxy HTTP client for Gemini CLI token requests
2025-12-02 22:39:01 +08:00
hkfires
3ebbab0a9a
Revert watcher.go in "fix: enable hot reload for amp-model-mappings config"
2025-12-02 22:17:54 +08:00
hkfires
480cd714b2
feat(config): add pruning of stale YAML mapping keys during config save
2025-12-02 21:38:54 +08:00
Luis Pater
41ee44432d
**fix(translator): rename responseSchema key for generationConfig**
...
- Renamed `generationConfig.responseSchema` to `generationConfig.responseJsonSchema` in Gemini request transformation to align with updated schema expectations.
2025-12-02 18:32:23 +08:00
Luis Pater
1434bc38e5
**refactor(registry): remove Qwen3-Coder from model definitions**
2025-12-02 11:34:38 +08:00
Luis Pater
0fd2abbc3b
**refactor(cliproxy, config): remove vertex-compat flow, streamline Vertex API key handling**
...
- Removed `vertex-compat` executor and related configuration.
- Consolidated Vertex compatibility checks into `vertex` handling with `apikey`-based model resolution.
- Streamlined model generation logic for Vertex API key entries.
2025-12-02 09:18:24 +08:00
Aero
0ebb654019
feat: Add support for VertexAI compatible service ( #375 )
...
feat: consolidate Vertex AI compatibility with API key support in Gemini
2025-12-02 08:14:22 +08:00
NguyenSiTrung
3409f4e336
fix: enable hot reload for amp-model-mappings config
...
- Store ampModule in Server struct to access it during config updates
- Call ampModule.OnConfigUpdated() in UpdateClients() for hot reload
- Watch config directory instead of file to handle atomic saves (vim, VSCode, etc.)
- Improve config file event detection with basename matching
- Add diagnostic logging for config reload tracing
2025-12-01 13:34:49 +07:00
NguyenSiTrung
9354b87e54
Merge branch 'router-for-me:main' into main
2025-12-01 08:12:29 +07:00
auroraflux
1c6f4be8ae
refactor(executor): dedupe thinking metadata helpers across Gemini executors
...
Extract applyThinkingMetadata and applyThinkingMetadataCLI helpers to
payload_helpers.go and use them across all four Gemini-based executors:
- gemini_executor.go (Execute, ExecuteStream, CountTokens)
- gemini_cli_executor.go (Execute, ExecuteStream, CountTokens)
- aistudio_executor.go (translateRequest)
- antigravity_executor.go (Execute, ExecuteStream)
This eliminates code duplication introduced in the -reasoning suffix PR
and centralizes the thinking config application logic.
Net reduction: 28 lines of code.
2025-11-30 15:20:15 -08:00