Compare commits
1 Commits
74c2b1b7e7
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| e146af1af6 |
@@ -96,10 +96,12 @@ RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=${CODE_SE
|
|||||||
|
|
||||||
# 安装 npm 全局包
|
# 安装 npm 全局包
|
||||||
RUN npm install -g \
|
RUN npm install -g \
|
||||||
@anthropic-ai/claude-code \
|
|
||||||
@musistudio/claude-code-router \
|
@musistudio/claude-code-router \
|
||||||
pm2
|
pm2
|
||||||
|
|
||||||
|
# 安装 claude code
|
||||||
|
RUN curl -fsSL https://claude.ai/install.sh | bash
|
||||||
|
|
||||||
# 创建工作目录
|
# 创建工作目录
|
||||||
RUN mkdir -p /workspace /root/.local/share/code-server/User
|
RUN mkdir -p /workspace /root/.local/share/code-server/User
|
||||||
|
|
||||||
|
|||||||
@@ -346,6 +346,7 @@ EOF
|
|||||||
"api_base_url": "${PKUAI_API_BASE}api/anthropic/v1/messages",
|
"api_base_url": "${PKUAI_API_BASE}api/anthropic/v1/messages",
|
||||||
"api_key": "${PKUAI_API_KEY}",
|
"api_key": "${PKUAI_API_KEY}",
|
||||||
"models": [
|
"models": [
|
||||||
|
"claude-opus-4-6",
|
||||||
"claude-sonnet-4-5-20250929",
|
"claude-sonnet-4-5-20250929",
|
||||||
"claude-opus-4-5-20251101",
|
"claude-opus-4-5-20251101",
|
||||||
"claude-haiku-4-5-20251001"
|
"claude-haiku-4-5-20251001"
|
||||||
@@ -368,13 +369,13 @@ EOF
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Router": {
|
"Router": {
|
||||||
"default": "pku-anthropic,claude-opus-4-5-20251101",
|
"default": "pku-anthropic,claude-opus-4-6",
|
||||||
"background": "pku-anthropic,claude-haiku-4-5-20251001",
|
"background": "pku-anthropic,claude-haiku-4-5-20251001",
|
||||||
"think": "pku-anthropic,claude-opus-4-5-20251101",
|
"think": "pku-anthropic,claude-opus-4-6",
|
||||||
"longContext": "pku-anthropic,claude-opus-4-5-20251101",
|
"longContext": "pku-anthropic,claude-opus-4-6",
|
||||||
"longContextThreshold": 80000,
|
"longContextThreshold": 80000,
|
||||||
"webSearch": "",
|
"webSearch": "",
|
||||||
"image": "pku-anthropic,claude-opus-4-5-20251101"
|
"image": "pku-anthropic,claude-opus-4-6"
|
||||||
},
|
},
|
||||||
"CUSTOM_ROUTER_PATH": ""
|
"CUSTOM_ROUTER_PATH": ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ TEMP_DIR=$(mktemp -d)
|
|||||||
trap "rm -rf $TEMP_DIR" EXIT
|
trap "rm -rf $TEMP_DIR" EXIT
|
||||||
|
|
||||||
# 复制必要文件
|
# 复制必要文件
|
||||||
cp -r .next $TEMP_DIR/
|
cp -r .next-prod $TEMP_DIR/
|
||||||
cp -r public $TEMP_DIR/
|
cp -r public $TEMP_DIR/
|
||||||
cp -r prisma $TEMP_DIR/
|
cp -r prisma $TEMP_DIR/
|
||||||
cp package.json $TEMP_DIR/
|
cp package.json $TEMP_DIR/
|
||||||
|
|||||||
Reference in New Issue
Block a user