@@ -61,15 +61,15 @@ async def test_evil_forward(tmp_socket):
61
61
62
62
# Throws an error in first forward pass.
63
63
with pytest .raises (RAISED_ERROR ):
64
- async for _ in client .generate (prompt = "Hello my name is" ,
64
+ async for _ in client .generate (inputs = "Hello my name is" ,
65
65
sampling_params = SamplingParams (),
66
66
request_id = uuid .uuid4 ()):
67
67
pass
68
68
assert client .errored
69
69
70
70
# Engine is errored, should get ENGINE_DEAD_ERROR.
71
71
with pytest .raises (MQEngineDeadError ):
72
- async for _ in client .generate (prompt = "Hello my name is" ,
72
+ async for _ in client .generate (inputs = "Hello my name is" ,
73
73
sampling_params = SamplingParams (),
74
74
request_id = uuid .uuid4 ()):
75
75
pass
@@ -118,7 +118,7 @@ async def test_failed_health_check(tmp_socket):
118
118
119
119
# Generate call should throw ENGINE_DEAD_ERROR
120
120
with pytest .raises (MQEngineDeadError ):
121
- async for _ in client .generate (prompt = "Hello my name is" ,
121
+ async for _ in client .generate (inputs = "Hello my name is" ,
122
122
sampling_params = SamplingParams (),
123
123
request_id = uuid .uuid4 ()):
124
124
pass
@@ -160,7 +160,7 @@ async def test_failed_abort(tmp_socket):
160
160
# with reference to the original KeyError("foo")
161
161
with pytest .raises (MQEngineDeadError ) as execinfo :
162
162
async for _ in client .generate (
163
- prompt = "Hello my name is" ,
163
+ inputs = "Hello my name is" ,
164
164
sampling_params = SamplingParams (max_tokens = 10 ),
165
165
request_id = uuid .uuid4 ()):
166
166
pass
@@ -183,7 +183,7 @@ async def test_bad_request(tmp_socket):
183
183
184
184
# Invalid request should fail, but not crash the server.
185
185
with pytest .raises (ValueError ):
186
- async for _ in client .generate (prompt = "Hello my name is" ,
186
+ async for _ in client .generate (inputs = "Hello my name is" ,
187
187
sampling_params = SamplingParams (),
188
188
request_id = "abcd-1" ,
189
189
lora_request = LoRARequest (
@@ -192,7 +192,7 @@ async def test_bad_request(tmp_socket):
192
192
pass
193
193
194
194
# This request should be okay.
195
- async for _ in client .generate (prompt = "Hello my name is" ,
195
+ async for _ in client .generate (inputs = "Hello my name is" ,
196
196
sampling_params = SamplingParams (),
197
197
request_id = "abcd-2" ):
198
198
pass
0 commit comments