Skip to main content
Trieve Vector Inference is compatible with the OpenAI API. This means you’re able to just replace the endpoint, without changing any pre-existing code. Here’s an example with the openai python SDK:
1

Install the dependencies

2

Update OpenAI URL

Replace base_url with your embeddding endpoint.
openai_compatibility.py