File tree Expand file tree Collapse file tree
astrbot/core/provider/sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -516,6 +516,7 @@ async def text_chat(
516516 model = model or self .get_model ()
517517
518518 payloads = {"messages" : new_messages , "model" : model }
519+ payloads .update (kwargs )
519520
520521 # Anthropic has a different way of handling system prompts
521522 if system_prompt :
@@ -572,6 +573,7 @@ async def text_chat_stream(
572573 model = model or self .get_model ()
573574
574575 payloads = {"messages" : new_messages , "model" : model }
576+ payloads .update (kwargs )
575577
576578 # Anthropic has a different way of handling system prompts
577579 if system_prompt :
Original file line number Diff line number Diff line change @@ -758,6 +758,7 @@ async def text_chat(
758758 model = model or self .get_model ()
759759
760760 payloads = {"messages" : context_query , "model" : model }
761+ payloads .update (kwargs )
761762
762763 retry = 10
763764 keys = self .api_keys .copy ()
@@ -813,6 +814,7 @@ async def text_chat_stream(
813814 model = model or self .get_model ()
814815
815816 payloads = {"messages" : context_query , "model" : model }
817+ payloads .update (kwargs )
816818
817819 retry = 10
818820 keys = self .api_keys .copy ()
Original file line number Diff line number Diff line change @@ -619,8 +619,8 @@ async def _prepare_chat_payload(
619619 context_query .extend (tcr .to_openai_messages ())
620620
621621 model = model or self .get_model ()
622-
623622 payloads = {"messages" : context_query , "model" : model }
623+ payloads .update (kwargs )
624624
625625 self ._finally_convert_payload (payloads )
626626
You can’t perform that action at this time.
0 commit comments