You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unify streamAdapter/betaStreamAdapter retry logic into generic retryableStream
Extract the duplicated single-retry-on-context-length-error logic from both
streamAdapter and betaStreamAdapter into a shared generic retryableStream[T]
struct. Both adapters now embed retryableStream and use its next() method
instead of duplicating the retry code inline.
The retryFn closures in client.go and beta_client.go now return the raw
*ssestream.Stream[T] directly instead of wrapping it in a full adapter,
since only the stream was ever used from the returned value.
Assisted-By: docker-agent
0 commit comments