gateway_error_handler#

langchain_ibm.utils.gateway_error_handler(
func: Callable,
) Callable[source]#

Decorator to catch ApiRequestFailure on Model Gateway calls and log a uniform warning.

Parameters:

func (Callable)

Return type:

Callable