Skip to content

Commit d3b98ed

Browse files
authored
Merge pull request #109 from kaitranntt/kai/fix/upstream-sync-v7.1.68
chore(upstream-sync): merge upstream v7.1.68
2 parents 4d6f474 + 50080b9 commit d3b98ed

288 files changed

Lines changed: 37472 additions & 663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ccs-fork-upstream.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
UPSTREAM_TAG=v7.1.45
2-
UPSTREAM_COMMIT=5753d1a0896fd5bb9ace47adb17b0174ceb79e4d
1+
UPSTREAM_TAG=v7.1.68
2+
UPSTREAM_COMMIT=ed52c6147cdffdf18a9fe0cea106616a83113412

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ go.sum merge=union
1414

1515
# Our fork-maintenance files — always keep ours
1616
.github/workflows/upstream-sync.yml merge=ours
17+
.github/workflows/release.yaml merge=ours
18+
.goreleaser.yml merge=ours
1719
.gitattributes merge=ours
1820
README-ccs-fork.md merge=ours
1921

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ conv/*
1616
temp/*
1717
refs/*
1818
tmp/*
19+
plugins/*
20+
examples/plugin/bin/*
1921

2022
# Storage backends
2123
pgstore/*

.goreleaser.yml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
version: 2
22

33
builds:
4-
- id: "cli-proxy-api-plus"
4+
# GoReleaser runs on Linux without cross C toolchains in this fork. Keep the
5+
# portable non-Windows archives explicit: they compile without CGO, so dynamic
6+
# library plugins are not available there. Docker images are CGO-enabled.
7+
- id: "cli-proxy-api-plus-no-plugin"
58
env:
69
- CGO_ENABLED=0
710
goos:
811
- linux
9-
- windows
1012
- darwin
1113
- freebsd
1214
goarch:
@@ -16,14 +18,40 @@ builds:
1618
binary: cli-proxy-api-plus
1719
ldflags:
1820
- -s -w -X 'main.Version={{.Version}}-plus' -X 'main.Commit={{.ShortCommit}}' -X 'main.BuildDate={{.Date}}'
21+
# Windows plugin loading is implemented without CGO, so these archives keep
22+
# the standard release name.
23+
- id: "cli-proxy-api-plus-windows"
24+
env:
25+
- CGO_ENABLED=0
26+
goos:
27+
- windows
28+
goarch:
29+
- amd64
30+
- arm64
31+
main: ./cmd/server/
32+
binary: cli-proxy-api-plus
33+
ldflags:
34+
- -s -w -X 'main.Version={{.Version}}-plus' -X 'main.Commit={{.ShortCommit}}' -X 'main.BuildDate={{.Date}}'
1935
archives:
20-
- id: "cli-proxy-api-plus"
21-
format: tar.gz
36+
- id: "cli-proxy-api-plus-no-plugin"
37+
ids:
38+
- cli-proxy-api-plus-no-plugin
39+
formats:
40+
- tar.gz
41+
name_template: >-
42+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{- if eq .Arch "arm64" -}}aarch64{{- else -}}{{ .Arch }}{{- end -}}_no-plugin
43+
files:
44+
- LICENSE
45+
- README.md
46+
- README_CN.md
47+
- config.example.yaml
48+
- id: "cli-proxy-api-plus-windows"
49+
ids:
50+
- cli-proxy-api-plus-windows
51+
formats:
52+
- zip
2253
name_template: >-
2354
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{- if eq .Arch "arm64" -}}aarch64{{- else -}}{{ .Arch }}{{- end -}}
24-
format_overrides:
25-
- goos: windows
26-
format: zip
2755
files:
2856
- LICENSE
2957
- README.md
@@ -34,7 +62,7 @@ checksum:
3462
name_template: 'checksums.txt'
3563

3664
snapshot:
37-
name_template: "{{ incpatch .Version }}-next"
65+
version_template: "{{ incpatch .Version }}-next"
3866

3967
changelog:
4068
sort: asc

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
FROM golang:1.26-alpine AS builder
1+
FROM golang:1.26-bookworm AS builder
22

33
WORKDIR /app
44

5+
RUN apt-get update && apt-get install -y --no-install-recommends build-essential git && rm -rf /var/lib/apt/lists/*
6+
57
COPY go.mod go.sum ./
68

79
RUN go mod download
@@ -12,11 +14,11 @@ ARG VERSION=dev
1214
ARG COMMIT=none
1315
ARG BUILD_DATE=unknown
1416

15-
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X 'main.Version=${VERSION}-plus' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" -o ./CLIProxyAPIPlus ./cmd/server/
17+
RUN CGO_ENABLED=1 GOOS=linux go build -buildvcs=false -ldflags="-s -w -X 'main.Version=${VERSION}-plus' -X 'main.Commit=${COMMIT}' -X 'main.BuildDate=${BUILD_DATE}'" -o ./CLIProxyAPIPlus ./cmd/server/
1618

17-
FROM alpine:3.23
19+
FROM debian:bookworm
1820

19-
RUN apk add --no-cache tzdata
21+
RUN apt-get update && apt-get install -y --no-install-recommends tzdata ca-certificates && rm -rf /var/lib/apt/lists/*
2022

2123
RUN mkdir /CLIProxyAPI
2224

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ VisionCoder is also offering our users a limited-time <a href="https://coder.vis
4040
<td width="180"><a href="https://apikey.fun/register?aff=CLIProxyAPI"><img src="./assets/apikey.png" alt="APIKEY.FUN" width="150"></a></td>
4141
<td>Thanks to APIKEY.FUN for sponsoring this project! APIKEY.FUN is a professional enterprise-grade AI relay platform dedicated to providing stable, efficient, and low-cost AI model API access for enterprises and individual developers. The platform supports popular mainstream models such as Claude, OpenAI, and Gemini, with prices as low as 7% of the official price. Register through this project's <a href="https://apikey.fun/register?aff=CLIProxyAPI">exclusive link</a> to enjoy a special <b>permanent 5% top-up discount</b>.</td>
4242
</tr>
43+
<tr>
44+
<td width="180"><a href="https://runapi.co/register?aff=FivD"><img src="./assets/runapi.png" alt="RunAPI" width="150"></a></td>
45+
<td>RunAPI is an efficient and stable API platform—an alternative to OpenRouter. A single API Key gives you access to 150+ leading models, including OpenAI, Claude, Gemini, DeepSeek, Grok, and more, at prices as low as 10% of the original (up to 90% off), with exceptional stability. It's seamlessly compatible with tools like Claude Code, OpenClaw, and others. RunAPI offers an exclusive perk for CPA users: <a href="https://runapi.co/register?aff=FivD">register</a> and contact an administrator to claim ¥7 in free credit.</td>
46+
</tr>
47+
<tr>
48+
<td width="180"><a href="https://unity2.ai/register?source=cliproxyapi"><img src="./assets/unity2.jpg" alt="Unity2" width="150"></a></td>
49+
<td>Thanks to Unity2.ai for sponsoring this project! Unity2.ai is a high-performance AI model API relay platform for individual developers, teams, and enterprises. It has long served leading domestic enterprises, handles more than 30 billion token calls per day, and supports high concurrency at the 5000 RPM level. It supports balance billing, first top-up bonuses, bundled subscriptions, enterprise invoicing, and dedicated integration support. Register through <a href="https://unity2.ai/register?source=cliproxyapi">this link</a> to receive a $2 balance, then join the official group to get another $10 balance, for up to $12 in free credit.</td>
50+
</tr>
4351
</tbody>
4452
</table>
4553

README_CN.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ VisionCoder 还为我们的用户提供 <a href="https://coder.visioncoder.cn" t
4040
<td width="180"><a href="https://apikey.fun/register?aff=CLIProxyAPI"><img src="./assets/apikey.png" alt="APIKEY.FUN" width="150"></a></td>
4141
<td>感谢 APIKEY.FUN 赞助本项目!APIKEY.FUN 是一家专业的企业级 AI 中转站,致力于为企业和个人开发者提供稳定、高效、低成本的 AI 模型 API 接入服务。平台支持 Claude、OpenAI、Gemini 等主流热门模型,价格低至官方原价的 7%。通过本项目<a href="https://apikey.fun/register?aff=CLIProxyAPI">专属链接</a>注册,还可享受最高 <b>充值永久 95 折</b> 专属优惠。</td>
4242
</tr>
43+
<tr>
44+
<td width="180"><a href="https://runapi.co/register?aff=FivD"><img src="./assets/runapi.png" alt="RunAPI" width="150"></a></td>
45+
<td>RunAPI 是高效稳定的API OpenRouter平替平台,一个 API Key 即可访问 OpenAI、Claude、Gemini、DeepSeek、Grok 等 150+ 主流模型,低至 1 折,极其稳定,可以无缝兼容 Claude Code、OpenClaw 等工具。RunAPI 为 CPA的用户提供专属福利:<a href="https://runapi.co/register?aff=FivD">注册</a>联系管理员即可领取¥7的免费额度</td>
46+
</tr>
47+
<tr>
48+
<td width="180"><a href="https://unity2.ai/register?source=cliproxyapi"><img src="./assets/unity2.jpg" alt="Unity2" width="150"></a></td>
49+
<td>感谢 Unity2.ai 赞助了本项目!Unity2.ai 是面向个人开发者、团队和企业的高性能 AI 模型 API 中转平台,长期服务国内头部企业,日均承载超 300 亿 token 调用,支持 5000 RPM 级高并发。支持余额计费、首充赠额、组合订阅、企业开票和专属对接。通过<a href="https://unity2.ai/register?source=cliproxyapi">此链接</a>注册可领取 $2 余额,加入官方群再送 $10 余额,最高可领 $12 免费额度。</td>
50+
</tr>
4351
</tbody>
4452
</table>
4553

README_JA.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ PackyCodeは当ソフトウェアのユーザーに特別割引を提供して
3838
<td width="180"><a href="https://apikey.fun/register?aff=CLIProxyAPI"><img src="./assets/apikey.png" alt="APIKEY.FUN" width="150"></a></td>
3939
<td>APIKEY.FUNのスポンサーシップに感謝します!APIKEY.FUNはプロフェッショナルなエンタープライズ向けAIリレーサービスで、企業および個人開発者に安定・高効率・低コストなAIモデルAPI接続サービスを提供しています。Claude、OpenAI、Geminiなどの主要人気モデルに対応し、価格は公式価格の7%から利用できます。本プロジェクトの<a href="https://apikey.fun/register?aff=CLIProxyAPI">専用リンク</a>から登録すると、さらに<b>チャージが永続的に5%割引</b>となる特別優待を受けられます。</td>
4040
</tr>
41+
<tr>
42+
<td width="180"><a href="https://runapi.co/register?aff=FivD"><img src="./assets/runapi.png" alt="RunAPI" width="150"></a></td>
43+
<td>RunAPIは高効率で安定したAPIプラットフォームで、OpenRouterの代替として利用できます。1つのAPI KeyでOpenAI、Claude、Gemini、DeepSeek、Grokなど150以上の主要モデルにアクセスでき、価格は公式価格の10%から、非常に安定しており、Claude Code、OpenClawなどのツールとシームレスに互換性があります。RunAPIはCPAユーザー向けに特別特典を提供しています:<a href="https://runapi.co/register?aff=FivD">登録</a>後に管理者へ連絡すると、7元分の無料クレジットを受け取れます。</td>
44+
</tr>
45+
<tr>
46+
<td width="180"><a href="https://unity2.ai/register?source=cliproxyapi"><img src="./assets/unity2.jpg" alt="Unity2" width="150"></a></td>
47+
<td>Unity2.aiのスポンサーシップに感謝します!Unity2.aiは、個人開発者、チーム、企業向けの高性能AIモデルAPIリレープラットフォームです。国内の大手企業に長期的にサービスを提供し、1日あたり300億tokenを超える呼び出しを処理し、5000 RPM級の高同時実行に対応しています。残高課金、初回チャージ特典、組み合わせサブスクリプション、企業向け請求書発行、専任サポートに対応しています。<a href="https://unity2.ai/register?source=cliproxyapi">こちらのリンク</a>から登録すると$2の残高を受け取れ、公式グループに参加するとさらに$10の残高が付与され、最大$12の無料クレジットを受け取れます。</td>
48+
</tr>
4149
</tbody>
4250
</table>
4351

assets/runapi.png

12.8 KB
Loading

assets/unity2.jpg

54.4 KB
Loading

0 commit comments

Comments
 (0)