feat(providers): account calls (auth/refresh/credits) egress on the local IP

Now only the generate/video submit uses proxy.url; cookie-exchange/login, token refresh, credit-balance and project/session bootstrap all go direct. Also splits adobe GenerateVideo (submit=proxy, poll/download=local). Verified live: adobe gpt 1K cookie-exchange via local IP, submit 23.244.30.102 (proxy) vs local 76.209.9.65, 2.0MB PNG. Build+vet pass.
This commit is contained in:
2026-07-09 16:36:04 +08:00
parent 6c2a942a88
commit 622bc9ba9a
7 changed files with 23 additions and 17 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func ExtractAccountInfo(token string) map[string]any {
}
func (c *Client) FetchImageQuota(ctx context.Context, accessToken string) (map[string]any, error) {
session, err := c.newSession(accessToken)
session, err := c.newDirectSession(accessToken)
if err != nil {
return nil, err
}