@@ -75,7 +75,7 @@ public struct ReplicateAPI{
7575 public func getCollections( collection_slug : String ) async throws -> CollectionOfModels {
7676
7777 let path = " collections/ \( collection_slug) "
78- let rule = [ Http . Validate. status ( . range( 200 ..< 300 ) ) ]
78+ let rule = [ Http . Validate. status ( . range( 200 ..< 500 ) ) ]
7979 let result : Http . Response < CollectionOfModels > = try await client. get ( path: path, validate: rule)
8080
8181 return result. value
@@ -88,7 +88,7 @@ public struct ReplicateAPI{
8888 public func getModel( owner: String , name: String ) async throws -> Model {
8989
9090 let path = " models/ \( owner) / \( name) "
91- let rule = [ Http . Validate. status ( . range( 200 ..< 300 ) ) ]
91+ let rule = [ Http . Validate. status ( . range( 200 ..< 500 ) ) ]
9292 let result : Http . Response < Model > = try await client. get ( path: path, validate: rule)
9393
9494 return result. value
@@ -180,7 +180,7 @@ public struct ReplicateAPI{
180180 by id : String
181181 ) async throws -> Prediction < Output > {
182182
183- let rule = [ Http . Validate. status ( . range( 200 ..< 300 ) ) ]
183+ let rule = [ Http . Validate. status ( . range( 200 ..< 500 ) ) ]
184184 let result : Http . Response < Prediction < Output > > = try await client. get (
185185 path: " predictions/ \( id) " ,
186186 validate: rule
@@ -196,7 +196,7 @@ public struct ReplicateAPI{
196196 with body : HttpBody < Input >
197197 ) async throws -> Prediction < Output > {
198198
199- let rule = [ Http . Validate. status ( . range( 200 ..< 300 ) ) ]
199+ let rule = [ Http . Validate. status ( . range( 200 ..< 500 ) ) ]
200200 let result : Http . Response < Prediction < Output > > = try await client. post (
201201 path: " predictions " ,
202202 body : body,
0 commit comments