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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user