From 1474e6c64b3f227153b2e033310e563402bda2be Mon Sep 17 00:00:00 2001 From: jayNuc Date: Wed, 15 Oct 2025 10:20:00 +0800 Subject: [PATCH] =?UTF-8?q?FIX:=E4=BF=AE=E5=A4=8DGemini=5Fbase=5Furl=20?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=87=AA=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/scripts/gemini-wrapper | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 .claude/scripts/gemini-wrapper diff --git a/.claude/scripts/gemini-wrapper b/.claude/scripts/gemini-wrapper old mode 100644 new mode 100755 index e0424c73..47054799 --- a/.claude/scripts/gemini-wrapper +++ b/.claude/scripts/gemini-wrapper @@ -52,6 +52,12 @@ GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color +# Respect custom Gemini base URL +if [[ -n "$GOOGLE_GEMINI_BASE_URL" ]]; then + echo -e "${GREEN}🌐 Using custom Gemini base URL: $GOOGLE_GEMINI_BASE_URL${NC}" >&2 + export GOOGLE_GEMINI_BASE_URL +fi + # Function to count tokens (approximate: chars/4) - optimized version count_tokens() { local total_chars=0