feat: add unified reverse proxy URL support for all API endpoints

Extract URL construction into src/utils/url-builder.js, replacing 8
scattered inline implementations. Now properly handles reverse proxy
paths like /Gemini/v1 or /antigravity/v1 by detecting version segments
at any path depth. Fixes inconsistent Anthropic URL in multi-ai-generator.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cola-Echo
2026-03-31 23:23:55 +08:00
parent 10ea8cc1f4
commit 3a554028ae
10 changed files with 133 additions and 61 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long