File tree Expand file tree Collapse file tree
notebooks/official/generative_ai Expand file tree Collapse file tree Original file line number Diff line number Diff line change 213213 " if MODEL == \" claude-opus-4-7\" :\n " ,
214214 " available_regions = [\n " ,
215215 " \" global\" ,\n " ,
216+ " \" us\" ,\n " ,
217+ " \" eu\" ,\n " ,
216218 " ]\n " ,
217219 " elif MODEL == \" claude-sonnet-4-6\" :\n " ,
218220 " available_regions = [\n " ,
319321 "outputs" : [],
320322 "source" : [
321323 " PROJECT_ID = \" [your-project-id]\" # @param {type:\" string\" }\n " ,
324+ " MULTI_REGION_LIST = [\" us\" , \" eu\" ]\n " ,
322325 " \n " ,
323326 " if LOCATION == \" global\" :\n " ,
324327 " ENDPOINT = \" https://aiplatform.googleapis.com\"\n " ,
328+ " elif LOCATION in MULTI_REGION_LIST:\n " ,
329+ " ENDPOINT = f\" https://aiplatform.{LOCATION}.rep.googleapis.com\"\n " ,
325330 " else:\n " ,
326331 " ENDPOINT = f\" https://{LOCATION}-aiplatform.googleapis.com\"\n " ,
327332 " \n " ,
678683 " if MODEL == \" claude-opus-4-7\" :\n " ,
679684 " available_regions = [\n " ,
680685 " \" global\" ,\n " ,
686+ " \" us\" ,\n " ,
687+ " \" eu\" ,\n " ,
681688 " ]\n " ,
682689 " elif MODEL == \" claude-sonnet-4-6\" :\n " ,
683690 " available_regions = [\n " ,
You can’t perform that action at this time.
0 commit comments