diff --git a/weave/trace_server_bindings/remote_http_trace_server.py b/weave/trace_server_bindings/remote_http_trace_server.py index 966bf92a8151..ad7b86759182 100644 --- a/weave/trace_server_bindings/remote_http_trace_server.py +++ b/weave/trace_server_bindings/remote_http_trace_server.py @@ -232,7 +232,7 @@ def _generic_stream_request( r = self._generic_request_executor(url, req, stream=True) for line in r.iter_lines(): if line: - yield res_model.model_validate(json.loads(line)) + yield res_model.model_validate_json(line) @tenacity.retry( stop=tenacity.stop_after_delay(REMOTE_REQUEST_RETRY_DURATION),