mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 08:02:53 +00:00
发布准备:合入 #36、#46、#48、#49、#50、#53;修复 #42、#44、#51、#52,并添加 GPL-3.0-or-later。
保留 reasoning 配置,新增免费模型可用性探测 / 手动恢复、首 SSE 事件超时,元数据改用官方地址。按维护者要求,最终文件树排除测试文件。 验证:本地 Go 回归、go vet / build、Prettier、JS / shell 语法及独立实例管理端验收通过。
This commit is contained in:
1 parent
31c35704be
commit
df119c48e4
29 files changed
+1301
-807
No files matched your search
@@ -30,11 +30,6 @@ jobs:
|
||||
cache: true
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
- name: Race test
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: go test -race ./...
|
||||
- name: Build
|
||||
run: go build -trimpath ./cmd/opencode2api
|
||||
|
||||
|
||||
@@ -128,7 +128,8 @@ jobs:
|
||||
run: |
|
||||
mkdir -p "dist/$PACKAGE_NAME"
|
||||
go build -trimpath -ldflags="-s -w -X main.version=$RELEASE_TAG" -o "dist/$PACKAGE_NAME/opencode2api$EXTENSION" ./cmd/opencode2api
|
||||
cp README.md README.zh-CN.md config.example.json "dist/$PACKAGE_NAME/"
|
||||
cp README.md README.zh-CN.md LICENSE config.example.json "dist/$PACKAGE_NAME/"
|
||||
cp -r docs "dist/$PACKAGE_NAME/"
|
||||
if [[ "$ARCHIVE_FORMAT" == "zip" ]]; then
|
||||
(cd dist && zip -q -r "$PACKAGE_NAME.zip" "$PACKAGE_NAME")
|
||||
archive="$PACKAGE_NAME.zip"
|
||||
@@ -184,6 +185,7 @@ jobs:
|
||||
labels: |
|
||||
org.opencontainers.image.title=opencode2api
|
||||
org.opencontainers.image.description=OpenAI-compatible API gateway for OpenCode Zen and Go
|
||||
org.opencontainers.image.licenses=GPL-3.0-or-later
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
Reference in new issue
Block a user