Skip to content

Commit

Permalink
add auto metadata logging for stream log (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerachleff authored Nov 20, 2023
1 parent b60b52d commit eef38b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions langserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _unpack_request_config(

def _update_config_with_defaults(
path: str,
incomingConfig: RunnableConfig,
incoming_config: RunnableConfig,
request: Request,
*,
endpoint: Optional[str] = None,
Expand Down Expand Up @@ -178,7 +178,7 @@ def _update_config_with_defaults(
# finally the non-overridable configs
return merge_configs(
overridable_default_config,
incomingConfig,
incoming_config,
non_overridable_default_config,
)

Expand Down Expand Up @@ -935,7 +935,9 @@ async def stream_log(
err_event = {}
validation_exception: Optional[BaseException] = None
try:
config, input_ = await _get_config_and_input(request, config_hash)
config, input_ = await _get_config_and_input(
request, config_hash, endpoint="stream_log"
)
except BaseException as e:
validation_exception = e
if isinstance(e, RequestValidationError):
Expand Down

0 comments on commit eef38b5

Please sign in to comment.