diff --git a/langserve/api_handler.py b/langserve/api_handler.py index 346e89dc..8669a4da 100644 --- a/langserve/api_handler.py +++ b/langserve/api_handler.py @@ -776,7 +776,7 @@ async def _get_config_and_input( # using configuration. schema = self._runnable.with_config(config).input_schema input_ = schema.validate(body.input) - return config, _unpack_input(input_) + return config, _unpack_input(body.input) except ValidationError as e: raise RequestValidationError(e.errors(), body=body)