File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ def p2l_api_stream_iter(
433433 max_new_tokens ,
434434 api_base = None ,
435435 api_key = None ,
436- extra_body = None
436+ extra_body = None ,
437437):
438438 import openai
439439
@@ -462,7 +462,7 @@ def p2l_api_stream_iter(
462462 "temperature" : None ,
463463 "top_p" : None ,
464464 "max_new_tokens" : max_new_tokens ,
465- "extra_body" : extra_body
465+ "extra_body" : extra_body ,
466466 }
467467 logger .info (f"==== request ====\n { gen_params } " )
468468
Original file line number Diff line number Diff line change @@ -527,7 +527,7 @@ def bot_response(
527527 conv .set_system_message ("" )
528528
529529 extra_body = None
530-
530+
531531 if use_recommended_config :
532532 recommended_config = model_api_dict .get ("recommended_config" , None )
533533 if recommended_config is not None :
@@ -546,7 +546,7 @@ def bot_response(
546546 top_p ,
547547 max_new_tokens ,
548548 state ,
549- extra_body = extra_body
549+ extra_body = extra_body ,
550550 )
551551
552552 html_code = ' <span class="cursor"></span> '
You can’t perform that action at this time.
0 commit comments