rename safe_messages to trim_messages

This commit is contained in:
ishaan-jaff 2023-09-11 18:54:18 -07:00
parent 7d41e701a6
commit dda87a55ff
3 changed files with 12 additions and 12 deletions

View file

@ -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