You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have LiteLLM running and I've been using it with no issues. I want to intercept the messages before they're sent to the api. How do I do this? There seems to be some proxy stuff built in but I can't figure it out.
Where am i supposed to save this python file? What should the whole file look like? where is messages defined? Does this need to be a class? How do I tell LiteLLM that the files exists? I'm unfamiliar with LiteLLM and have spend hours trying out different things. Any direction and help is appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have LiteLLM running and I've been using it with no issues. I want to intercept the messages before they're sent to the api. How do I do this? There seems to be some proxy stuff built in but I can't figure it out.
I saw this as an option:
https://docs.litellm.ai/docs/completion/message_trimming
Where am i supposed to save this python file? What should the whole file look like? where is
messages
defined? Does this need to be a class? How do I tell LiteLLM that the files exists? I'm unfamiliar with LiteLLM and have spend hours trying out different things. Any direction and help is appreciated.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions