googleapis / googleapis/python-aiplatform

Eu multi-region not compatible with init

未关闭 适合新手
#6,822 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
api: vertex-ai
主要语言
Python
星标
905
派生
465
平均合并
1 天 13 小时
30 天内合并 PR
44

描述

#### Environment details

- OS type and version: Mac and Linux
- Python version: `3.13.2`
- `google-cloud-aiplatform` version: `1.153.1`

#### Steps to reproduce

1. Initialize vertex client through vertexai.init or aiplatform.init with location = "eu"
2. It fails because its not considered a valid location

#### Code example

```python
from google.cloud import aiplatform
aiplatform.init(location="eu")
```

#### Stack trace
```
ValueError: Unsupported region for Vertex AI, select from frozenset({'asia-northeast3', 'us-west1', 'europe-west6', 'europe-west4', 'europe-central2', 'europe-west12', 'europe-west9', 'us-east1', 'me-central2', 'europe-west8', 'europe-north2', 'us-east5', 'australia-southeast2', 'asia-northeast1', 'asia-southeast2', 'southamerica-east1', 'northamerica-northeast1', 'africa-south1', 'europe-west1', 'us-east7', 'us-east4', 'asia-east2', 'us-south1', 'southamerica-west1', 'europe-west2', 'europe-west3', 'northamerica-northeast2', 'us-west4', 'us-central1', 'asia-south2', 'me-central1', 'us-west3', 'asia-northeast2', 'global', 'europe-north1', 'asia-south1', 'australia-southeast1', 'asia-east1', 'europe-southwest1', 'asia-southeast1', 'me-west1', 'us-west8', 'us-west2'})
```

贡献指南

打开贡献指南

调研方向

Reproduce the failure with aiplatform.init(location="eu") and vertexai.init using the versions and environments listed. Trace the location validation that raises the unsupported-region ValueError, then update the relevant behavior so the multi-region value is accepted and verify that both initialization paths succeed.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cloud, machine-learning
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。