Skip to content

Commit

Permalink
fix: prediction stream raw predict url for non dedicated endpoint
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 725777307
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed Feb 12, 2025
1 parent 0d73929 commit d9577d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/cloud/aiplatform/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2583,6 +2583,7 @@ def stream_raw_predict(
timeout: Optional[float] = None,
) -> Iterator[requests.models.Response]:
"""Makes a streaming prediction request using arbitrary headers.
For custom model, this method is only supported for dedicated endpoint.
Example usage:
```
Expand Down Expand Up @@ -2632,7 +2633,7 @@ def stream_raw_predict(
if self.stream_raw_predict_request_url is None:
self.stream_raw_predict_request_url = f"https://{self.location}-{constants.base.API_BASE_PATH}/v1/projects/{self.project}/locations/{self.location}/endpoints/{self.name}:streamRawPredict"

url = self.raw_predict_request_url
url = self.stream_raw_predict_request_url

if use_dedicated_endpoint:
self._sync_gca_resource_if_skipped()
Expand Down

0 comments on commit d9577d5

Please sign in to comment.