Skip to main content

profile_api

Function
This function is defined in the profiler module.
Decorator to profile a function as an API call.

Signature

def profile_api(func: Optional[Callable]) -> Any

Parameters

func
Optional
No description available.

Returns

Returns
Any
The result of the operation.

Usage

@profile_api(endpoint="openai/chat")
    def call_openai():
        pass