Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions adk/retry_chatmodel.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"errors"
"fmt"
"io"
"log"
"math/rand"
"time"

Expand Down Expand Up @@ -202,7 +201,6 @@ func (r *retryModelWrapper) Generate(ctx context.Context, input []*schema.Messag

lastErr = err
if attempt < r.config.MaxRetries {
log.Printf("retrying ChatModel.Generate (attempt %d/%d): %v", attempt+1, r.config.MaxRetries, err)
time.Sleep(backoffFunc(ctx, attempt+1))
}
}
Expand Down Expand Up @@ -243,7 +241,6 @@ func (r *retryModelWrapper) Stream(ctx context.Context, input []*schema.Message,
}
lastErr = err
if attempt < r.config.MaxRetries {
log.Printf("retrying ChatModel.Stream (attempt %d/%d): %v", attempt+1, r.config.MaxRetries, err)
time.Sleep(backoffFunc(ctx, attempt+1))
}
continue
Expand All @@ -265,7 +262,6 @@ func (r *retryModelWrapper) Stream(ctx context.Context, input []*schema.Message,

lastErr = streamErr
if attempt < r.config.MaxRetries {
log.Printf("retrying ChatModel.Stream (attempt %d/%d): %v", attempt+1, r.config.MaxRetries, streamErr)
time.Sleep(backoffFunc(ctx, attempt+1))
}
}
Expand Down