Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions docs/docs/client_infinity.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ with i_client as client:
Or use the POST methods:

```python
from infinity_client.models import OpenAIEmbeddingInput, OpenAIEmbeddingResult
from infinity_client.models import OpenAIEmbeddingInputText, OpenAIEmbeddingResult
from infinity_client.api.default import classify, embeddings, embeddings_image, rerank
from infinity_client.types import Response

with i_client as client:
embeds: OpenAIEmbeddingResult = embeddings.sync(client=client, body=OpenAIEmbeddingInput.from_dict({
embeds: OpenAIEmbeddingResult = embeddings.sync(client=client, body=OpenAIEmbeddingInputText.from_dict({
"input": ["Hello, this is a sentence-to-embed", "Hello, my cat is cute"],
"model": "michaelfeil/bge-small-en-v1.5",
}))
Expand Down
4 changes: 2 additions & 2 deletions libs/client_infinity/infinity_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ with i_client as client:
Or use the POST methods:

```python
from infinity_client.models import OpenAIEmbeddingInput, OpenAIEmbeddingResult
from infinity_client.models import OpenAIEmbeddingInputText, OpenAIEmbeddingResult
from infinity_client.api.default import classify, embeddings, embeddings_image, rerank
from infinity_client.types import Response

with i_client as client:
embeds: OpenAIEmbeddingResult = embeddings.sync(client=client, body=OpenAIEmbeddingInput.from_dict({
embeds: OpenAIEmbeddingResult = embeddings.sync(client=client, body=OpenAIEmbeddingInputText.from_dict({
"input": ["Hello, this is a sentence-to-embed", "Hello, my cat is cute"],
"model": "michaelfeil/bge-small-en-v1.5",
}))
Expand Down
4 changes: 2 additions & 2 deletions libs/client_infinity/template/README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ with i_client as client:
Or use the POST methods:

```python
from {{ package_name }}.models import OpenAIEmbeddingInput, OpenAIEmbeddingResult
from {{ package_name }}.models import OpenAIEmbeddingInputText, OpenAIEmbeddingResult
from {{ package_name }}.api.default import classify, embeddings, embeddings_image, rerank
from {{ package_name }}.types import Response

with i_client as client:
embeds: OpenAIEmbeddingResult = embeddings.sync(client=client, body=OpenAIEmbeddingInput.from_dict({
embeds: OpenAIEmbeddingResult = embeddings.sync(client=client, body=OpenAIEmbeddingInputText.from_dict({
"input": ["Hello, this is a sentence-to-embed", "Hello, my cat is cute"],
"model": "michaelfeil/bge-small-en-v1.5",
}))
Expand Down