Spaces:
ainz
/
Configuration error

ainz commited on
Commit
2cc5732
·
verified ·
1 Parent(s): 688d352

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -68
README.md DELETED
@@ -1,68 +0,0 @@
1
- ## 安装与运行
2
-
3
- ### 使用 Docker 运行
4
-
5
- 1. 使用 Docker 命令:
6
-
7
- ```bash
8
- docker run -d -p 8999:8999 --name hixai2api rfym21/hixai2api:latest
9
- ```
10
-
11
- 2. 使用 docker-compose 运行服务:
12
-
13
- ```bash
14
- curl -o docker-compose.yml https://raw.githubusercontent.com/Rfym21/Hixai2API/refs/heads/main/docker-compose.yml
15
- docker compose pull && docker compose up -d
16
- ```
17
-
18
- ### 本地运行
19
-
20
- 1. 下载仓库文件:
21
-
22
- ```bash
23
- git clone https://github.com/Rfym21/Hixai2API
24
- cd Hixai2API
25
- ```
26
-
27
- 2. 安装依赖:
28
-
29
- ```bash
30
- npm install
31
- ```
32
-
33
- 3. 运行服务:
34
-
35
- ```bash
36
- npm start
37
- ```
38
-
39
- ## 获取 Token
40
- ![2025-02-23_18-29-17.png](https://s2.loli.net/2025/02/23/my1SVoaqWvbTuRA.png)
41
-
42
- ## API 端点
43
-
44
- ### 获取模型列表
45
-
46
- - **请求方式**: `GET`
47
- - **URL**: `/v1/models`
48
-
49
- ### 聊天完成
50
-
51
- - **请求方式**: `POST`
52
- - **URL**: `/v1/chat/completions`
53
- - **Headers**:
54
- - `Authorization`: 必须提供有效的授权令牌。
55
- - **请求体**:
56
-
57
- ```json
58
- {
59
- "model": "模型名称",
60
- "messages": [
61
- {
62
- "role": "user",
63
- "content": "用户消息"
64
- }
65
- ],
66
- "stream": false
67
- }
68
- ```