@@ -86,7 +86,7 @@ describe("predict()", () => {
8686 ) ;
8787
8888 await model . predict (
89- { text : "test text" } ,
89+ { input : { text : "test text" } } ,
9090 { } ,
9191 { defaultPollingInterval : 0 }
9292 ) ;
@@ -128,7 +128,7 @@ describe("predict()", () => {
128128 . mockImplementation ( ( action ) => requestMockReturnValues [ action ] ) ;
129129
130130 await model . predict (
131- { text : "test text" } ,
131+ { input : { text : "test text" } } ,
132132 { } ,
133133 { defaultPollingInterval : 0 }
134134 ) ;
@@ -182,7 +182,7 @@ describe("predict()", () => {
182182 } ) ;
183183
184184 const prediction = await model . predict (
185- { text : "test text" } ,
185+ { input : { text : "test text" } } ,
186186 { } ,
187187 { defaultPollingInterval : 0 }
188188 ) ;
@@ -237,7 +237,7 @@ describe("predict()", () => {
237237 const backoffFn = jest . fn ( ( ) => 0 ) ;
238238
239239 const prediction = await model . predict (
240- { text : "test text" } ,
240+ { input : { text : "test text" } } ,
241241 { } ,
242242 { defaultPollingInterval : 0 , backoffFn }
243243 ) ;
@@ -255,7 +255,7 @@ describe("createPrediction()", () => {
255255 status : PredictionStatus . SUCCEEDED ,
256256 } ) ;
257257
258- await model . createPrediction ( { text : "test text" } ) ;
258+ await model . createPrediction ( { input : { text : "test text" } } ) ;
259259
260260 expect ( client . request ) . toHaveBeenCalledWith ( "POST /v1/predictions" , {
261261 version : "testversion" ,
@@ -270,7 +270,7 @@ describe("createPrediction()", () => {
270270 } ) ;
271271
272272 await model . createPrediction (
273- { text : "test text" } ,
273+ { input : { text : "test text" } } ,
274274 { webhook : "http://test.host/webhook" }
275275 ) ;
276276
@@ -288,7 +288,7 @@ describe("createPrediction()", () => {
288288 } ) ;
289289
290290 await model . createPrediction (
291- { text : "test text" } ,
291+ { input : { text : "test text" } } ,
292292 {
293293 webhook : "http://test.host/webhook" ,
294294 webhookEventsFilter : [ "output" , "completed" ] ,
0 commit comments