Skip to content

Commit

Permalink
add warning for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattf committed Sep 5, 2024
1 parent 1c9b0ef commit 95a4233
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/ai-endpoints/langchain_nvidia_ai_endpoints/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def _wait(self, response: Response, session: requests.Session) -> Response:
"NVCF-REQID" in response.headers
), "Received 202 response with no request id to follow"
request_id = response.headers.get("NVCF-REQID")
warnings.warn(f"Polling for response: {request_id}") # todo: remove
payload = {
"url": self.polling_url_tmpl.format(request_id=request_id),
"headers": self.headers_tmpl["call"],
Expand Down

0 comments on commit 95a4233

Please sign in to comment.