Skip to content

Commit 1282fb5

Browse files
committed
docs: 在示例中添加Authorization头部以支持API请求
1 parent ca42d31 commit 1282fb5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ docker-compose up -d
5151
```bash
5252
curl --location 'http://你的服务器ip:8080/v1/chat/completions' \
5353
--header 'Content-Type: application/json' \
54+
--header 'Authorization: Bearer access_token' \
5455
--data '{
5556
"model": "auto",
5657
"messages": [{"role": "user", "content": "Say this is a test!"}],
@@ -64,6 +65,7 @@ curl --location 'http://你的服务器ip:8080/v1/chat/completions' \
6465
```bash
6566
curl --location 'http://你的服务器ip:8080/v1/audio/speech' \
6667
--header 'Content-Type: application/json' \
68+
--header 'Authorization: Bearer access_token' \
6769
--data '{
6870
"model": "tts-1",
6971
"input": "Hello, this is a test!",

0 commit comments

Comments
 (0)