mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
feat: make it not use two user messages in a row
This commit is contained in:
parent
6a71bff7c7
commit
b9c9bddcfe
1 changed files with 1 additions and 1 deletions
|
|
@ -99,8 +99,8 @@ async def maybe_compact_context(
|
|||
transcript = _serialize_messages_for_summary(messages)
|
||||
|
||||
summarization_messages: List[Dict[str, Any]] = [
|
||||
{"role": "system", "content": SUMMARIZATION_SYSTEM_PROMPT},
|
||||
{"role": "user", "content": transcript},
|
||||
{"role": "user", "content": SUMMARIZATION_SYSTEM_PROMPT},
|
||||
]
|
||||
|
||||
acompletion_kwargs: Dict[str, Any] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue