Nitro with openai-python
You can migrate from OAI API or Azure OpenAI to Nitro using your existing Python code quickly
The ONLY thing you need to do is to override
baseURL
inopenai
init withNitro
URL
- Python OpenAI SDK: https://pypi.org/project/openai/
Chat Completion
Engine | Python Code |
Nitro |
|
OAI |
|
Azure OAI |
|
Embedding
Engine | Embedding |
Nitro |
|
OAI |
|
Azure OAI |
|
Audio
Coming soon
How to reproduce
Step 1: Dependencies installation.
Install OpenAI
pip install openai
Step 2: Fill index.py
file with code.
Step 3: Run the code with python index.py
.