@@ -94,7 +94,7 @@ describe("predict()", () => {
9494 ) ;
9595
9696 await model . predict (
97- { text : "test text" } ,
97+ { input : { text : "test text" } } ,
9898 { } ,
9999 { defaultPollingInterval : 0 }
100100 ) ;
@@ -136,7 +136,7 @@ describe("predict()", () => {
136136 . mockImplementation ( ( action ) => requestMockReturnValues [ action ] ) ;
137137
138138 await model . predict (
139- { text : "test text" } ,
139+ { input : { text : "test text" } } ,
140140 { } ,
141141 { defaultPollingInterval : 0 }
142142 ) ;
@@ -190,7 +190,7 @@ describe("predict()", () => {
190190 } ) ;
191191
192192 const prediction = await model . predict (
193- { text : "test text" } ,
193+ { input : { text : "test text" } } ,
194194 { } ,
195195 { defaultPollingInterval : 0 }
196196 ) ;
@@ -251,7 +251,7 @@ describe("predict()", () => {
251251 const backoffFn = jest . fn ( ( ) => 0 ) ;
252252
253253 const prediction = await model . predict (
254- { text : "test text" } ,
254+ { input : { text : "test text" } } ,
255255 { } ,
256256 { defaultPollingInterval : 0 , backoffFn }
257257 ) ;
@@ -269,7 +269,7 @@ describe("createPrediction()", () => {
269269 status : PredictionStatus . SUCCEEDED ,
270270 } ) ;
271271
272- await model . createPrediction ( { text : "test text" } ) ;
272+ await model . createPrediction ( { input : { text : "test text" } } ) ;
273273
274274 expect ( client . request ) . toHaveBeenCalledWith ( "POST /v1/predictions" , {
275275 version : "testversion" ,
@@ -284,7 +284,7 @@ describe("createPrediction()", () => {
284284 } ) ;
285285
286286 await model . createPrediction (
287- { text : "test text" } ,
287+ { input : { text : "test text" } } ,
288288 { webhook : "http://test.host/webhook" }
289289 ) ;
290290
@@ -302,7 +302,7 @@ describe("createPrediction()", () => {
302302 } ) ;
303303
304304 await model . createPrediction (
305- { text : "test text" } ,
305+ { input : { text : "test text" } } ,
306306 {
307307 webhook : "http://test.host/webhook" ,
308308 webhookEventsFilter : [ "output" , "completed" ] ,
0 commit comments