Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/aistudio-to-api
IMAGE_NAME_PRIMARY: ibuhub/aistudio-to-api
IMAGE_NAME_LEGACY: ibenzene/aistudio-to-api
VERSION: ${{ github.ref_name }}

jobs:
Expand Down Expand Up @@ -48,19 +49,29 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0

- name: Log into registry ${{ env.REGISTRY }}
- name: Log into registry (primary)
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Log into registry (legacy - ibenzene)
if: github.event_name != 'pull_request'
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ibenzene
password: ${{ secrets.LEGACY_REGISTRY_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_PRIMARY }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LEGACY }}
tags: |
type=ref,event=tag
type=raw,value=${{ steps.generate_tag.outputs.tag }},enable=${{ github.event_name == 'workflow_dispatch' }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
1. 克隆仓库:

```bash
git clone https://github.com/iBenzene/AIStudioToAPI.git
git clone https://github.com/iBUHub/AIStudioToAPI.git
Comment thread
bbbugg marked this conversation as resolved.
cd AIStudioToAPI
```

Expand Down Expand Up @@ -66,7 +66,7 @@ docker run -d \
-e API_KEYS=your-api-key-1,your-api-key-2 \
-e TZ=Asia/Shanghai \
--restart unless-stopped \
ghcr.io/ibenzene/aistudio-to-api:latest
ghcr.io/ibuhub/aistudio-to-api:latest
```

参数说明:
Expand All @@ -85,7 +85,7 @@ name: aistudio-to-api

services:
app:
image: ghcr.io/ibenzene/aistudio-to-api:latest
image: ghcr.io/ibuhub/aistudio-to-api:latest
container_name: aistudio-to-api
ports:
- 7860:7860
Expand Down
6 changes: 3 additions & 3 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A tool that wraps Google AI Studio web interface to provide OpenAI API and Gemin
1. Clone the repository:

```bash
git clone https://github.com/iBenzene/AIStudioToAPI.git
git clone https://github.com/iBUHub/AIStudioToAPI.git
Comment thread
bbbugg marked this conversation as resolved.
cd AIStudioToAPI
```

Expand Down Expand Up @@ -66,7 +66,7 @@ docker run -d \
-e API_KEYS=your-api-key-1,your-api-key-2 \
-e TZ=Asia/Shanghai \
--restart unless-stopped \
ghcr.io/ibenzene/aistudio-to-api:latest
ghcr.io/ibuhub/aistudio-to-api:latest
```

Parameters:
Expand All @@ -85,7 +85,7 @@ name: aistudio-to-api

services:
app:
image: ghcr.io/ibenzene/aistudio-to-api:latest
image: ghcr.io/ibuhub/aistudio-to-api:latest
container_name: aistudio-to-api
ports:
- 7860:7860
Expand Down
2 changes: 1 addition & 1 deletion docs/en/claw-cloud-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This guide will help you deploy the `aistudio-to-api` service on [Claw Cloud Run
3. **Configure Application**: Fill in the following parameters:
- **Application Name**: Enter any name you prefer (e.g., `aistudio-api`).
- **Image**: Select **Public**.
- **Image Name**: `ghcr.io/ibenzene/aistudio-to-api:latest`
- **Image Name**: `ghcr.io/ibuhub/aistudio-to-api:latest`

**Usage**:
- **CPU**: `0.5`
Expand Down
2 changes: 1 addition & 1 deletion docs/en/zeabur.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This guide will help you deploy the `aistudio-to-api` service on [Zeabur](https:
4. **Configure Application**: Fill in the following parameters:

**Image**:
- **Image Name**: `ghcr.io/ibenzene/aistudio-to-api:latest`
- **Image Name**: `ghcr.io/ibuhub/aistudio-to-api:latest`
- **Username**: Leave empty
- **Password**: Leave empty

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/claw-cloud-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
3. **配置应用**:填写以下参数:
- **Application Name**:填写一个你喜欢的英文名称(例如 `aistudio-api`)。
- **Image**:选择 **Public**。
- **Image Name**:`ghcr.io/ibenzene/aistudio-to-api:latest`
- **Image Name**:`ghcr.io/ibuhub/aistudio-to-api:latest`

**Usage**:
- **CPU**:`0.5`
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/zeabur.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
4. **配置应用**:填写以下参数:

**镜像**:
- **镜像名称**:`ghcr.io/ibenzene/aistudio-to-api:latest`
- **镜像名称**:`ghcr.io/ibuhub/aistudio-to-api:latest`
- **用户名**:不用填写
- **密码**:不用填写

Expand Down
4 changes: 2 additions & 2 deletions src/utils/VersionChecker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const axios = require("axios");
class VersionChecker {
constructor(logger) {
this.logger = logger;
this.repoOwner = "iBenzene";
this.repoOwner = "iBUHub";
Comment thread
bbbugg marked this conversation as resolved.
this.repoName = "AIStudioToAPI";
}

Expand Down Expand Up @@ -66,7 +66,7 @@ class VersionChecker {
* @returns {Promise<boolean>}
*/
async checkDockerImageExists(tag) {
const image = "ibenzene/aistudio-to-api";
const image = "ibuhub/aistudio-to-api";
const registry = "ghcr.io";
const manifestUrl = `https://${registry}/v2/${image}/manifests/${tag}`;

Expand Down
4 changes: 2 additions & 2 deletions ui/app/pages/StatusPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
</div>
<div class="version-footer">
<a
href="https://github.com/iBenzene/AIStudioToAPI"
href="https://github.com/iBUHub/AIStudioToAPI"
Comment thread
bbbugg marked this conversation as resolved.
target="_blank"
rel="noopener noreferrer"
class="github-link"
Expand All @@ -341,7 +341,7 @@
<span class="version-tag">{{ appVersion }}</span>
<a
v-if="state.hasUpdate"
:href="state.releaseUrl || 'https://github.com/iBenzene/AIStudioToAPI/releases'"
:href="state.releaseUrl || 'https://github.com/iBUHub/AIStudioToAPI/releases'"
Comment thread
bbbugg marked this conversation as resolved.
target="_blank"
rel="noopener noreferrer"
class="update-tag"
Expand Down