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
Would be super useful to solve situation where you have a stack of decorators :
@retry() -> last catch the error and retry
@handle_errors -> if call crashes, for now hacky but will save the usage and pass the error
@save_usage(callback=lambda metrics: print(f"\nMetrics: {metrics}")) -> will save usage of each call
@with_logfire() -> record the call
@litellm.call(model="gpt-4o-mini", stream=True, call_params={"stream_options": {"include_usage": True}})
@prompt_template(
The text was updated successfully, but these errors were encountered:
Description
Would be super useful to solve situation where you have a stack of decorators :
The text was updated successfully, but these errors were encountered: