mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
Update litellm/litellm_core_utils/prompt_templates/common_utils.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
f1421d1082
commit
7e4ec10007
1 changed files with 1 additions and 3 deletions
|
|
@ -299,9 +299,7 @@ def _insert_user_continue_message(
|
|||
while i < len(result_messages):
|
||||
curr_message = result_messages[i]
|
||||
inserted_continue_message = False
|
||||
if (
|
||||
curr_message["role"] == "assistant"
|
||||
and _counts_for_alternation(curr_message)
|
||||
if _counts_for_alternation(curr_message) and curr_message["role"] == "assistant":
|
||||
):
|
||||
j = i - 1
|
||||
while j >= 0:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue