|
|
@ -168,7 +168,7 @@ pnpm dev
|
|
|
|
- `OPENAI_API_KEY` one of two
|
|
|
|
- `OPENAI_API_KEY` one of two
|
|
|
|
- `OPENAI_ACCESS_TOKEN` one of two, `OPENAI_API_KEY` takes precedence when both are present
|
|
|
|
- `OPENAI_ACCESS_TOKEN` one of two, `OPENAI_API_KEY` takes precedence when both are present
|
|
|
|
- `OPENAI_API_BASE_URL` optional, available when `OPENAI_API_KEY` is set
|
|
|
|
- `OPENAI_API_BASE_URL` optional, available when `OPENAI_API_KEY` is set
|
|
|
|
- `OPENAI_API_Model` optional, available when `OPENAI_API_KEY` is set
|
|
|
|
- `OPENAI_API_MODEL` optional, available when `OPENAI_API_KEY` is set
|
|
|
|
- `API_REVERSE_PROXY` optional, available when `OPENAI_ACCESS_TOKEN` is set [Reference](#introduction)
|
|
|
|
- `API_REVERSE_PROXY` optional, available when `OPENAI_ACCESS_TOKEN` is set [Reference](#introduction)
|
|
|
|
- `AUTH_SECRET_KEY` Access Password,optional
|
|
|
|
- `AUTH_SECRET_KEY` Access Password,optional
|
|
|
|
- `TIMEOUT_MS` timeout, in milliseconds, optional
|
|
|
|
- `TIMEOUT_MS` timeout, in milliseconds, optional
|
|
|
@ -212,7 +212,7 @@ services:
|
|
|
|
# api interface url, optional, available when OPENAI_API_KEY is set
|
|
|
|
# api interface url, optional, available when OPENAI_API_KEY is set
|
|
|
|
OPENAI_API_BASE_URL: xxxx
|
|
|
|
OPENAI_API_BASE_URL: xxxx
|
|
|
|
# api model, optional, available when OPENAI_API_KEY is set
|
|
|
|
# api model, optional, available when OPENAI_API_KEY is set
|
|
|
|
OPENAI_API_Model: xxxx
|
|
|
|
OPENAI_API_MODEL: xxxx
|
|
|
|
# reverse proxy, optional
|
|
|
|
# reverse proxy, optional
|
|
|
|
API_REVERSE_PROXY: xxx
|
|
|
|
API_REVERSE_PROXY: xxx
|
|
|
|
# access password,optional
|
|
|
|
# access password,optional
|
|
|
@ -225,7 +225,7 @@ services:
|
|
|
|
SOCKS_PROXY_PORT: xxxx
|
|
|
|
SOCKS_PROXY_PORT: xxxx
|
|
|
|
```
|
|
|
|
```
|
|
|
|
The `OPENAI_API_BASE_URL` is optional and only used when setting the `OPENAI_API_KEY`.
|
|
|
|
The `OPENAI_API_BASE_URL` is optional and only used when setting the `OPENAI_API_KEY`.
|
|
|
|
The `OPENAI_API_Model` is optional and only used when setting the `OPENAI_API_KEY`.
|
|
|
|
The `OPENAI_API_MODEL` is optional and only used when setting the `OPENAI_API_KEY`.
|
|
|
|
|
|
|
|
|
|
|
|
### Deployment with Railway
|
|
|
|
### Deployment with Railway
|
|
|
|
|
|
|
|
|
|
|
@ -241,7 +241,7 @@ The `OPENAI_API_Model` is optional and only used when setting the `OPENAI_API_KE
|
|
|
|
| `OPENAI_API_KEY` | Optional | Required for `OpenAI API`. `apiKey` can be obtained from [here](https://platform.openai.com/overview). |
|
|
|
|
| `OPENAI_API_KEY` | Optional | Required for `OpenAI API`. `apiKey` can be obtained from [here](https://platform.openai.com/overview). |
|
|
|
|
| `OPENAI_ACCESS_TOKEN`| Optional | Required for `Web API`. `accessToken` can be obtained from [here](https://chat.openai.com/api/auth/session).|
|
|
|
|
| `OPENAI_ACCESS_TOKEN`| Optional | Required for `Web API`. `accessToken` can be obtained from [here](https://chat.openai.com/api/auth/session).|
|
|
|
|
| `OPENAI_API_BASE_URL` | Optional, only for `OpenAI API` | API endpoint. |
|
|
|
|
| `OPENAI_API_BASE_URL` | Optional, only for `OpenAI API` | API endpoint. |
|
|
|
|
| `OPENAI_API_Model` | Optional, only for `OpenAI API` | API model. |
|
|
|
|
| `OPENAI_API_MODEL` | Optional, only for `OpenAI API` | API model. |
|
|
|
|
| `API_REVERSE_PROXY` | Optional, only for `Web API` | Reverse proxy address for `Web API`. [Details](https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy) |
|
|
|
|
| `API_REVERSE_PROXY` | Optional, only for `Web API` | Reverse proxy address for `Web API`. [Details](https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy) |
|
|
|
|
| `SOCKS_PROXY_HOST` | Optional, effective with `SOCKS_PROXY_PORT` | Socks proxy. |
|
|
|
|
| `SOCKS_PROXY_HOST` | Optional, effective with `SOCKS_PROXY_PORT` | Socks proxy. |
|
|
|
|
| `SOCKS_PROXY_PORT` | Optional, effective with `SOCKS_PROXY_HOST` | Socks proxy port. |
|
|
|
|
| `SOCKS_PROXY_PORT` | Optional, effective with `SOCKS_PROXY_HOST` | Socks proxy port. |
|
|
|
|