File tree 1 file changed +5
-3
lines changed
litellm/litellm_core_utils
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ def __init__(
72
72
self .sent_first_chunk = False
73
73
self .sent_last_chunk = False
74
74
75
- litellm_params : GenericLiteLLMParams = self . logging_obj . model_call_details . get (
76
- "litellm_params" , {}
75
+ litellm_params : GenericLiteLLMParams = GenericLiteLLMParams (
76
+ ** self . logging_obj . model_call_details . get ( "litellm_params" , {})
77
77
)
78
78
self .merge_reasoning_content_in_choices = (
79
79
litellm_params .merge_reasoning_content_in_choices
@@ -976,7 +976,9 @@ def _optional_combine_thinking_block_in_choices(
976
976
and model_response .choices [0 ].delta .content
977
977
):
978
978
self .thinking_content += "</thinking>"
979
- model_response .choices [0 ].delta .content += self .thinking_content
979
+ model_response .choices [0 ].delta .content = (
980
+ self .thinking_content + model_response .choices [0 ].delta .content
981
+ )
980
982
self .sent_last_thinking_block = True
981
983
982
984
return model_response
You can’t perform that action at this time.
0 commit comments