Skip to content

Commit 732d265

Browse files
authored
fix(inference): change waitForCustomModel to waitForModel (scaleway#2538)
1 parent 30ae936 commit 732d265

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/inference/v1/inference_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ func (s *API) WaitForDeployment(req *WaitForDeploymentRequest, opts ...scw.Reque
5858
return deployment.(*Deployment), nil
5959
}
6060

61-
type WaitForCustomModelRequest struct {
61+
type WaitForModelRequest struct {
6262
ModelID string
6363
Region scw.Region
6464
Timeout *time.Duration
6565
RetryInterval *time.Duration
6666
}
6767

68-
func (s *API) WaitForCustomModel(req *WaitForCustomModelRequest, opts ...scw.RequestOption) (*Model, error) {
68+
func (s *API) WaitForModel(req *WaitForModelRequest, opts ...scw.RequestOption) (*Model, error) {
6969
timeout := defaultTimeout
7070
if req.Timeout != nil {
7171
timeout = *req.Timeout

0 commit comments

Comments
 (0)