We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Endpoint.raw_predict
authorized_session
1 parent ab5fd4d commit c72c1efCopy full SHA for c72c1ef
google/cloud/aiplatform/models.py
@@ -1687,10 +1687,10 @@ def raw_predict(
1687
"""
1688
if not self.authorized_session:
1689
self.credentials._scopes = constants.base.DEFAULT_AUTHED_SCOPES
1690
+ self.raw_predict_request_url = f"https://{self.location}-{constants.base.API_BASE_PATH}/v1/projects/{self.project}/locations/{self.location}/endpoints/{self.name}:rawPredict"
1691
self.authorized_session = google_auth_requests.AuthorizedSession(
1692
self.credentials
1693
)
- self.raw_predict_request_url = f"https://{self.location}-{constants.base.API_BASE_PATH}/v1/projects/{self.project}/locations/{self.location}/endpoints/{self.name}:rawPredict"
1694
1695
return self.authorized_session.post(
1696
url=self.raw_predict_request_url, data=body, headers=headers
0 commit comments