File size: 503 Bytes
9a39434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Custom Pipeline

This example shows how to serve any model you want by using a custom pipeline.

## Running the Server

Get into this example's directory:

```
cd examples/custom_pipeline
```

Run the server:

```
uvicorn main:app --reload --port 8000
```

## Client

```python
from closedai import openai

completion = openai.Completion.create(model='asdf', prompt='hi there, my name is')
# >>> completion.choices[0].text
# ', and 0 (test), and 1 (test), and 2 (test), and 3 (test), and 4 (test)'
```