You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/api/introduction.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This is the introduction to the DB-GPT API documentation. You can interact with the API through HTTP requests from any language, via our official Python Client bindings.
4
4
5
-
# Authentication
5
+
##Authentication
6
6
The DB-GPT API uses API keys for authentication. Visit your API Keys page to retrieve the API key you'll use in your requests.
7
7
8
8
Production requests must be routed through your own backend server where your API key can be securely loaded from an environment variable or key management service.
@@ -34,10 +34,18 @@ API_KEYS - The list of API keys that are allowed to access the API. Each of the
34
34
API_KEYS=dbgpt
35
35
```
36
36
37
-
## Installation
37
+
## Using the DB-GPT official Python Client
38
+
38
39
If you use Python, you should install the official DB-GPT Client package from PyPI:
39
40
40
41
```bash
41
-
pip install "dbgpt[client]>=0.5.2"
42
+
pip install "dbgpt-client>=0.7.1rc0"
42
43
```
43
44
45
+
## Using the OpenAI Python SDK
46
+
47
+
In some chat cases, you can use the OpenAI Python SDK to interact with the DB-GPT API. The DB-GPT API is compatible with the OpenAI API.
0 commit comments