chatgot更新换号重试

This commit is contained in:
2026-07-08 13:13:25 +08:00
parent 452a7bb450
commit 98b5f5a5c3
2 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -898,7 +898,8 @@ func (c *Client) startImageGeneration(ctx context.Context, session tlsclient.Htt
// image generation task actually started" signal, so when it is absent (and
// nothing was streamed inline) treat the attempt as a transient upstream
// failure. That is retryable: a fresh submission reliably engages the pipeline,
// so the pool's same-account retry recovers instead of failing the request.
// so the pool retries the same account a few times and then fails over to
// another account (换号重试) instead of failing the request.
if !asyncStarted && len(fileIDs) == 0 && len(sedimentIDs) == 0 {
return "", nil, nil, fmt.Errorf("%w: image generation did not start (no async marker)", ErrTemporaryUpstream)
}