File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ func (h *evalCommandHandler) callModelWithRetry(ctx context.Context, req azuremo
353353 continue
354354 }
355355 }
356- return "" , fmt .Errorf ("rate limit exceeded after %d attempts: %w" , maxRetries + 1 , err )
356+ return "" , fmt .Errorf ("rate limit exceeded after %d attempts: %w" , attempt + 1 , err )
357357 }
358358 // For non-rate-limit errors, return immediately
359359 return "" , err
@@ -381,9 +381,6 @@ func (h *evalCommandHandler) callModelWithRetry(ctx context.Context, req azuremo
381381
382382 return strings .TrimSpace (content .String ()), nil
383383 }
384-
385- // This should never be reached, but just in case
386- return "" , errors .New ("unexpected error calling model" )
387384}
388385
389386func (h * evalCommandHandler ) callModel (ctx context.Context , messages []azuremodels.ChatMessage ) (string , error ) {
You can’t perform that action at this time.
0 commit comments