mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
rename safe_messages to trim_messages
This commit is contained in:
parent
7d41e701a6
commit
dda87a55ff
3 changed files with 12 additions and 12 deletions
|
@ -2496,7 +2496,7 @@ def shorten_message_to_fit_limit(
|
|||
# LiteLLM token trimmer
|
||||
# this code is borrowed from https://github.com/KillianLucas/tokentrim/blob/main/tokentrim/tokentrim.py
|
||||
# Credits for this code go to Killian Lucas
|
||||
def safe_messages(
|
||||
def trim_messages(
|
||||
messages,
|
||||
model = None,
|
||||
system_message = None, # str of user system message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue