diff --git a/langserve/api_handler.py b/langserve/api_handler.py index 1af04fd1..1d88c253 100644 --- a/langserve/api_handler.py +++ b/langserve/api_handler.py @@ -694,9 +694,9 @@ def __init__( finally: # noqa if raise_original_error: print( - "Encountered an error while resolving the inputs of the Runnable. " - "Try specifying the input type explicitly using the " - "`with_types` method on the runnable.\n" + "Encountered an error while resolving the inputs of " + "the Runnable. Try specifying the input type explicitly " + "using the `with_types` method on the runnable.\n" "See https://api.python.langchain.com/en/latest/runnables/langchain_core.runnables.base.Runnable.html " # noqa: E501 ) raise e @@ -721,9 +721,9 @@ def __init__( finally: # noqa if raise_original_error: print( - "Encountered an error while resolving the inputs of the Runnable. " - "Try specifying the input type explicitly using the " - "`with_types` method on the runnable.\n" + "Encountered an error while resolving the inputs of " + "the Runnable. Try specifying the output type explicitly " + "using the `with_types` method on the runnable.\n" "See https://api.python.langchain.com/en/latest/runnables/langchain_core.runnables.base.Runnable.html " # noqa: E501 ) raise e