feat: 支持Anthropic API协议 | support Anthropic API protocol

- 添加Anthropic适配器实现 | Add Anthropic adaptor implementation
- 支持Anthropic消息格式转换 | Support Anthropic message format conversion
- 添加Vertex AI Claude适配器支持 | Add Vertex AI Claude adapter support
- 更新Anthropic的中继模式定义 | Update relay mode definitions for Anthropic
- 添加Anthropic控制器和路由 | Add Anthropic controller and routing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: zgdmemail@gmail.com
This commit is contained in:
Deadwalk
2025-09-28 11:13:55 +08:00
parent 8df4a2670b
commit 008ffe4662
12 changed files with 517 additions and 24 deletions

View File

@@ -4,9 +4,10 @@ WORKDIR /web
COPY ./VERSION .
COPY ./web .
RUN npm install --prefix /web/default & \
npm install --prefix /web/berry & \
npm install --prefix /web/air & \
RUN npm config set registry https://registry.npmmirror.com && \
npm install --prefix /web/default --legacy-peer-deps --retry 5 & \
npm install --prefix /web/berry --legacy-peer-deps --retry 5 & \
npm install --prefix /web/air --legacy-peer-deps --retry 5 & \
wait
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/default & \
@@ -24,12 +25,14 @@ RUN apk add --no-cache \
ENV GO111MODULE=on \
CGO_ENABLED=1 \
GOOS=linux
GOOS=linux \
GOPROXY=https://goproxy.cn,direct \
GOSUMDB=off
WORKDIR /build
ADD go.mod go.sum ./
RUN go mod download
RUN go mod download -x
COPY . .
COPY --from=builder /web/build ./web/build