mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
FIX:修复Gemini_base_url 不能自定义
This commit is contained in:
6
.claude/scripts/gemini-wrapper
Normal file → Executable file
6
.claude/scripts/gemini-wrapper
Normal file → Executable file
@@ -52,6 +52,12 @@ GREEN='\033[0;32m'
|
|||||||
YELLOW='\033[1;33m'
|
YELLOW='\033[1;33m'
|
||||||
NC='\033[0m' # No Color
|
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
|
# Function to count tokens (approximate: chars/4) - optimized version
|
||||||
count_tokens() {
|
count_tokens() {
|
||||||
local total_chars=0
|
local total_chars=0
|
||||||
|
|||||||
Reference in New Issue
Block a user