File tree Expand file tree Collapse file tree 2 files changed +30
-48
lines changed
pydantic_ai_slim/pydantic_ai Expand file tree Collapse file tree 2 files changed +30
-48
lines changed Original file line number Diff line number Diff line change @@ -224,15 +224,13 @@ def _refresh_token(self) -> str:
224
224
225
225
226
226
VertexAiRegion = Literal [
227
- 'us-central1' ,
228
- 'us-east1' ,
229
- 'us-east4' ,
230
- 'us-south1' ,
231
- 'us-west1' ,
232
- 'us-west2' ,
233
- 'us-west3' ,
234
- 'us-west4' ,
235
- 'us-east5' ,
227
+ 'asia-east1' ,
228
+ 'asia-east2' ,
229
+ 'asia-northeast1' ,
230
+ 'asia-northeast3' ,
231
+ 'asia-south1' ,
232
+ 'asia-southeast1' ,
233
+ 'australia-southeast1' ,
236
234
'europe-central2' ,
237
235
'europe-north1' ,
238
236
'europe-southwest1' ,
@@ -243,27 +241,20 @@ def _refresh_token(self) -> str:
243
241
'europe-west6' ,
244
242
'europe-west8' ,
245
243
'europe-west9' ,
246
- 'europe-west12' ,
247
- 'africa-south1' ,
248
- 'asia-east1' ,
249
- 'asia-east2' ,
250
- 'asia-northeast1' ,
251
- 'asia-northeast2' ,
252
- 'asia-northeast3' ,
253
- 'asia-south1' ,
254
- 'asia-southeast1' ,
255
- 'asia-southeast2' ,
256
- 'australia-southeast1' ,
257
- 'australia-southeast2' ,
258
244
'me-central1' ,
259
245
'me-central2' ,
260
246
'me-west1' ,
261
247
'northamerica-northeast1' ,
262
- 'northamerica-northeast2' ,
263
248
'southamerica-east1' ,
264
- 'southamerica-west1' ,
249
+ 'us-central1' ,
250
+ 'us-east1' ,
251
+ 'us-east4' ,
252
+ 'us-east5' ,
253
+ 'us-south1' ,
254
+ 'us-west1' ,
255
+ 'us-west4' ,
265
256
]
266
257
"""Regions available for Vertex AI.
267
258
268
- More details [here](https://cloud.google.com/vertex-ai/docs/reference/rest#rest_endpoints ).
259
+ More details [here](https://cloud.google.com/vertex-ai/generative-ai/ docs/learn/locations#genai-locations ).
269
260
"""
Original file line number Diff line number Diff line change @@ -155,15 +155,13 @@ async def _creds_from_file(service_account_file: str | Path) -> ServiceAccountCr
155
155
156
156
157
157
VertexAiRegion = Literal [
158
- 'us-central1' ,
159
- 'us-east1' ,
160
- 'us-east4' ,
161
- 'us-south1' ,
162
- 'us-west1' ,
163
- 'us-west2' ,
164
- 'us-west3' ,
165
- 'us-west4' ,
166
- 'us-east5' ,
158
+ 'asia-east1' ,
159
+ 'asia-east2' ,
160
+ 'asia-northeast1' ,
161
+ 'asia-northeast3' ,
162
+ 'asia-south1' ,
163
+ 'asia-southeast1' ,
164
+ 'australia-southeast1' ,
167
165
'europe-central2' ,
168
166
'europe-north1' ,
169
167
'europe-southwest1' ,
@@ -174,27 +172,20 @@ async def _creds_from_file(service_account_file: str | Path) -> ServiceAccountCr
174
172
'europe-west6' ,
175
173
'europe-west8' ,
176
174
'europe-west9' ,
177
- 'europe-west12' ,
178
- 'africa-south1' ,
179
- 'asia-east1' ,
180
- 'asia-east2' ,
181
- 'asia-northeast1' ,
182
- 'asia-northeast2' ,
183
- 'asia-northeast3' ,
184
- 'asia-south1' ,
185
- 'asia-southeast1' ,
186
- 'asia-southeast2' ,
187
- 'australia-southeast1' ,
188
- 'australia-southeast2' ,
189
175
'me-central1' ,
190
176
'me-central2' ,
191
177
'me-west1' ,
192
178
'northamerica-northeast1' ,
193
- 'northamerica-northeast2' ,
194
179
'southamerica-east1' ,
195
- 'southamerica-west1' ,
180
+ 'us-central1' ,
181
+ 'us-east1' ,
182
+ 'us-east4' ,
183
+ 'us-east5' ,
184
+ 'us-south1' ,
185
+ 'us-west1' ,
186
+ 'us-west4' ,
196
187
]
197
188
"""Regions available for Vertex AI.
198
189
199
- More details [here](https://cloud.google.com/vertex-ai/docs/reference/rest#rest_endpoints ).
190
+ More details [here](https://cloud.google.com/vertex-ai/generative-ai/ docs/learn/locations#genai-locations ).
200
191
"""
You can’t perform that action at this time.
0 commit comments