forked from su-kaka/gcli2api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzeabur.yaml
More file actions
50 lines (48 loc) · 1.07 KB
/
zeabur.yaml
File metadata and controls
50 lines (48 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: zeabur.com/v1
kind: Template
metadata:
name: gcli2api
spec:
description: "将 GeminiCLI 转换为 OpenAI 和 GEMINI API 接口"
tags:
- ai
- api
- gemini
- openai
variables:
- key: PASSWORD
type: STRING
name: API密码
description: 用于访问API和控制面板的密码
- key: DOMAIN
type: DOMAIN
name: 域名
description: 服务访问域名
readme: |
# GeminiCLI to API
将 GeminiCLI 转换为 OpenAI 和 GEMINI API 接口
部署后请访问您的域名进行配置。
services:
- name: gcli2api
template: PREBUILT
spec:
id: gcli2api
name: gcli2api
source:
image: ghcr.io/su-kaka/gcli2api:latest
ports:
- id: web
port: 7861
type: HTTP
env:
PASSWORD:
default: ${PASSWORD}
PORT:
default: "7861"
HOST:
default: "0.0.0.0"
DOMAIN:
default: ${DOMAIN}
volumes:
- id: creds
dir: /app/creds