feat: add request retry (#17) * feat: implement retry module Signed-off-by: PabloSanchi <[email protected]> * feat: return body so it can be used Signed-off-by: PabloSanchi <[email protected]> * fix: remove withContext functional creator Signed-off-by: PabloSanchi <[email protected]> * feat: add retry strategy to embedding request Signed-off-by: PabloSanchi <[email protected]> * fix: return http response instead of the body Signed-off-by: PabloSanchi <[email protected]> * fix: use http response instead of the body Signed-off-by: PabloSanchi <[email protected]> * feat: use retry strategy in the text and text stream requests Signed-off-by: PabloSanchi <[email protected]> * fix: avoid null pointer exception Signed-off-by: PabloSanchi <[email protected]> * fix: error check when create new request in embeddings Signed-off-by: PabloSanchi <[email protected]> * feat: add http client wrapper with retry and include DoWithRetry method in Doer interface Signed-off-by: PabloSanchi <[email protected]> * feat: use the http wrapper in the client constructor method Signed-off-by: PabloSanchi <[email protected]> * feat: make requests with DoWithRetry Signed-off-by: PabloSanchi <[email protected]> * fix: set 1 second default value for maxJitter Signed-off-by: PabloSanchi <[email protected]> --------- Signed-off-by: PabloSanchi <[email protected]>