@@ -166,6 +166,7 @@ func (e *GeminiCLIExecutor) Execute(ctx context.Context, auth *cliproxyauth.Auth
166166 lastBody = append ([]byte (nil ), data ... )
167167 log .Debugf ("request error, error status: %d, error body: %s" , httpResp .StatusCode , string (data ))
168168 if httpResp .StatusCode == 429 {
169+ log .Debugf ("gemini cli executor: rate limited, retrying with next model" )
169170 continue
170171 }
171172
@@ -281,6 +282,7 @@ func (e *GeminiCLIExecutor) ExecuteStream(ctx context.Context, auth *cliproxyaut
281282 lastBody = append ([]byte (nil ), data ... )
282283 log .Debugf ("request error, error status: %d, error body: %s" , httpResp .StatusCode , string (data ))
283284 if httpResp .StatusCode == 429 {
285+ log .Debugf ("gemini cli executor: rate limited, retrying with next model" )
284286 continue
285287 }
286288 err = statusErr {code : httpResp .StatusCode , msg : string (data )}
@@ -451,6 +453,7 @@ func (e *GeminiCLIExecutor) CountTokens(ctx context.Context, auth *cliproxyauth.
451453 lastStatus = resp .StatusCode
452454 lastBody = append ([]byte (nil ), data ... )
453455 if resp .StatusCode == 429 {
456+ log .Debugf ("gemini cli executor: rate limited, retrying with next model" )
454457 continue
455458 }
456459 break
0 commit comments