Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/source/en/quick_tour.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,22 @@ print(len(embedding[0]))
```

#### OpenAI
The server is availabe at : localhost:8080/v1/embeddings

You can install it via pip as `pip install --upgrade openai`, and then run:

```python
import os
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8080/v1/embeddings")
client = OpenAI(base_url="http://localhost:8080/v1", api_key= "fake")

response = client.embeddings.create(
model="tei",
input="What is deep learning?"
)

print(response)
print(response.data[0].embedding)
```

## Re-rankers and sequence classification
Expand Down