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/openai_api.md
+11-18Lines changed: 11 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,37 +32,30 @@ Now, let us test the API server.
32
32
### OpenAI Official SDK
33
33
The goal of `openai_api_server.py` is to implement a fully OpenAI-compatible API server, so the models can be used directly with [openai-python](https://github.com/openai/openai-python) library.
34
34
35
-
First, install openai-python:
35
+
First, install OpenAI python package >= 1.0:
36
36
```bash
37
37
pip install --upgrade openai
38
38
```
39
39
40
-
Then, interact with model vicuna:
40
+
Then, interact with the Vicuna model:
41
41
```python
42
-
from openai importOpenAI
43
-
# to get proper authentication, make sure to use a valid key that's listed in
44
-
# the --api-keys flag. if no flag value is provided, the `api_key` will be ignored.
0 commit comments