mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
rename safe_messages to trim_messages
This commit is contained in:
parent
78f3a4811d
commit
9f1a8844cd
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