/ docs / api / openai.md
openai.md
 1  # OpenAI-compatible API
 2  
 3  The API can be configured to serve an OpenAI-compatible API as shown below.
 4  
 5  ```yaml
 6  openai: True
 7  ```
 8  
 9  See the link below for a detailed example.
10  
11  | Notebook  | Description  |       |
12  |:----------|:-------------|------:|
13  | [OpenAI Compatible API](https://github.com/neuml/txtai/blob/master/examples/74_OpenAI_Compatible_API.ipynb) | Connect to txtai with a standard OpenAI client library | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/74_OpenAI_Compatible_API.ipynb) |