Commit aa096a6e3540
Changed files (7)
dots
config
emacs
home
common
services
modules
nix-flake-updater
xmpp-research-bot
systems
okinawa
tools
readwise-reader
dots/config/emacs/init.el
@@ -3193,7 +3193,7 @@ the appropriate file in ~/.local/share/imapfilter-rules/"
(setq agent-shell-anthropic-claude-environment
(agent-shell-make-environment-variables
"CLAUDE_CODE_USE_VERTEX" "1"
- "CLOUD_ML_REGION" "us-east5"
+ "CLOUD_ML_REGION" "global"
"ANTHROPIC_VERTEX_PROJECT_ID" "itpc-gcp-pnd-pe-eng-claude")))
(use-package agent-shell-pi
@@ -3203,7 +3203,7 @@ the appropriate file in ~/.local/share/imapfilter-rules/"
(setq agent-shell-pi-environment
(agent-shell-make-environment-variables
"GOOGLE_CLOUD_PROJECT" "itpc-gcp-pnd-pe-eng-claude"
- "GOOGLE_CLOUD_LOCATION" "us-east5"
+ "GOOGLE_CLOUD_LOCATION" "global"
"GEMINI_API_KEY" (passage-get "redhat/google/osp/vdeemest-api-key"))))
(use-package phscroll
home/common/services/readwise-reader.nix
@@ -30,7 +30,7 @@ let
export PASSAGE_IDENTITIES_FILE="${config.home.homeDirectory}/.local/share/passage/identities"
export XDG_DATA_HOME="${config.home.homeDirectory}/.local/share"
export GOOGLE_CLOUD_PROJECT="itpc-gcp-pnd-pe-eng-claude"
- export GOOGLE_CLOUD_LOCATION="us-east5"
+ export GOOGLE_CLOUD_LOCATION="global"
SCRIPT="${readwise-reader-script}"
modules/nix-flake-updater/default.nix
@@ -169,7 +169,7 @@ let
default = { };
example = {
GOOGLE_CLOUD_PROJECT = "my-project";
- GOOGLE_CLOUD_LOCATION = "us-east5";
+ GOOGLE_CLOUD_LOCATION = "global";
};
description = "Environment variables to set when running the agent";
};
modules/xmpp-research-bot/bot.py
@@ -426,7 +426,7 @@ async def main():
password = os.getenv("XMPP_PASSWORD")
owner_jid = os.getenv("XMPP_OWNER_JID")
project_id = os.getenv("VERTEX_PROJECT_ID")
- region = os.getenv("VERTEX_REGION", "us-east5")
+ region = os.getenv("VERTEX_REGION", "global")
inbox_path = os.getenv("INBOX_PATH", "/home/vincent/desktop/org/inbox.org")
commands_path = os.getenv("COMMANDS_PATH")
gemini_api_key = os.getenv("GEMINI_API_KEY")
modules/xmpp-research-bot/default.nix
@@ -62,7 +62,7 @@ in
vertexRegion = lib.mkOption {
type = lib.types.str;
- default = "us-east5";
+ default = "global";
description = "Google Cloud region for Vertex AI";
};
systems/okinawa/extra.nix
@@ -196,7 +196,7 @@
google-vertex = {
options = {
project = "itpc-gcp-pnd-pe-eng-claude";
- location = "us-east5";
+ location = "global";
};
};
};
@@ -239,7 +239,7 @@
# Config file location
XDG_CONFIG_HOME = "/run/opencode/config";
GOOGLE_VERTEX_PROJECT = "itpc-gcp-pnd-pe-eng-claude";
- GOOGLE_VERTEX_LOCATION = "us-east5";
+ GOOGLE_VERTEX_LOCATION = "global";
};
# Copy config file before start (--remove-destination needed because
@@ -406,7 +406,7 @@
export AUTO_FIX_EXTRA_ARGS="--provider google-vertex-claude --no-session --no-themes --no-skills"
export AUTO_FIX_MAX_ATTEMPTS="3"
export GOOGLE_CLOUD_PROJECT="itpc-gcp-pnd-pe-eng-claude"
- export GOOGLE_CLOUD_LOCATION="us-east5"
+ export GOOGLE_CLOUD_LOCATION="global"
# Allow overriding via CLI args
for arg in "$@"; do
tools/readwise-reader/readwise-reader.py
@@ -182,7 +182,7 @@ def _get_vertex_token():
def _call_vertex_claude(model_id, prompt, max_tokens):
import requests
project = os.environ.get("GOOGLE_CLOUD_PROJECT", "itpc-gcp-pnd-pe-eng-claude")
- location = os.environ.get("GOOGLE_CLOUD_LOCATION", "us-east5")
+ location = os.environ.get("GOOGLE_CLOUD_LOCATION", "global")
url = f"https://{location}-aiplatform.googleapis.com/v1/projects/{project}/locations/{location}/publishers/anthropic/models/{model_id}:rawPredict"
for attempt in range(MAX_RETRIES):
token = _get_vertex_token()