Update README.md

This commit is contained in:
Redreamality 2023-09-06 01:42:39 +10:00 committed by GitHub
parent d0a0e871e1
commit 84ed908613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,6 +262,13 @@ docker run --name chatgpt-web -d -p 3002:3002 -e OPENAI_API_BASE_URL=https://ope
注意,具体的 API Base 的格式取决于你所使用的客户端。
### OpenAI的python客户端请求方式
```bash
OPENAI_API_KEY="sk-xxxxx"
OPENAI_API_BASE="http://<HOST>:<PORT>/v1"
```
```mermaid
graph LR
A(用户)