更新runway 2api风控
This commit is contained in:
@@ -65,6 +65,13 @@ func (c *Client) GenerateVideo(ctx context.Context, token, prompt, aspectRatio,
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
// Self-heal the x-statsig-id anti-bot challenge for THIS session before the
|
||||
// gated submit. Without it the header falls back to the static defaults,
|
||||
// which go stale on a new grok web build and make conversations/new answer
|
||||
// 403 (anti-bot). Fetch via the proxy client so the derived seed matches the
|
||||
// submit's egress IP. Failure is non-fatal (statsigID then uses defaults).
|
||||
c.ensureChallenge(ctx, submitClient, token)
|
||||
|
||||
// Image-to-video: upload each reference frame and collect its asset URL.
|
||||
var imageRefs []string
|
||||
for _, f := range frames {
|
||||
|
||||
Reference in New Issue
Block a user