@@ -27,6 +27,7 @@ def test_completions_temp0(logging_conf):
2727 top_p = 0.7 ,
2828 temperature = 0 ,
2929 max_tokens = 2000 ,
30+ user_id = "12345678"
3031 )
3132 print (response )
3233
@@ -57,6 +58,7 @@ def test_completions_temp1(logging_conf):
5758 top_p = 0.7 ,
5859 temperature = 1 ,
5960 max_tokens = 2000 ,
61+ user_id = "12345678"
6062 )
6163 print (response )
6264
@@ -89,6 +91,7 @@ def test_completions_top0(logging_conf):
8991 top_p = 0 ,
9092 temperature = 0.9 ,
9193 max_tokens = 2000 ,
94+ user_id = "12345678"
9295 )
9396 print (response )
9497
@@ -121,6 +124,7 @@ def test_completions_top1(logging_conf):
121124 top_p = 1 ,
122125 temperature = 0.9 ,
123126 max_tokens = 2000 ,
127+ user_id = "12345678"
124128 )
125129 print (response )
126130
@@ -160,6 +164,7 @@ def test_completions(logging_conf):
160164 }
161165 }
162166 ],
167+ user_id = "12345678" ,
163168 extra_body = {"temperature" : 0.5 , "max_tokens" : 50 },
164169 )
165170 print (response )
@@ -201,6 +206,7 @@ def test_completions_disenable_web_search(logging_conf):
201206 }
202207 }
203208 ],
209+ user_id = "12345678" ,
204210 extra_body = {"temperature" : 0.5 , "max_tokens" : 50 },
205211 )
206212 print (response )
@@ -243,6 +249,7 @@ def test_completions_enable_web_search(logging_conf):
243249 }
244250 ],
245251 extra_body = {"temperature" : 0.5 , "max_tokens" : 50 },
252+ user_id = "12345678"
246253 )
247254 print (response )
248255
@@ -275,6 +282,7 @@ def test_completions_stream(logging_conf):
275282 {"role" : "user" , "content" : "创造一个更精准、吸引人的slogan" }
276283 ],
277284 extra_body = {"temperature" : 0.5 , "max_tokens" : 50 },
285+ user_id = "12345678"
278286 )
279287 for item in response :
280288 print (item )
@@ -323,7 +331,9 @@ def test_completions_vis(logging_conf):
323331 }
324332 ]
325333 }
326- ]
334+ ],
335+
336+ user_id = "12345678"
327337 )
328338 print (response )
329339
@@ -371,7 +381,9 @@ def test_completions_vis_base64(test_file_path, logging_conf):
371381 }
372382 ]
373383 }
374- ]
384+ ],
385+
386+ user_id = "12345678"
375387 )
376388 print (response )
377389
@@ -411,6 +423,8 @@ def test_async_completions(logging_conf):
411423 }
412424 ],
413425 extra_body = {"temperature" : 0.5 , "max_tokens" : 50 },
426+
427+ user_id = "12345678"
414428 )
415429 print (response )
416430
0 commit comments