Skip to content

Commit

Permalink
The input parameter for EmbeddingsRequest can be either a string or a…
Browse files Browse the repository at this point in the history
…n array of strings
  • Loading branch information
samselikoff committed Jul 5, 2024
1 parent aac60b7 commit 29bbf93
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,9 +1016,15 @@ components:
description: The name of the embedding model to use.
example: togethercomputer/m2-bert-80M-8k-retrieval
input:
type: string
description: A string providing the text for the model to embed.
example: Our solar system orbits the Milky Way galaxy at about 515,000 mph
oneOf:
- type: string
description: A string providing the text for the model to embed.
example: Our solar system orbits the Milky Way galaxy at about 515,000 mph
- type: array
items:
type: string
description: A string providing the text for the model to embed.
example: Our solar system orbits the Milky Way galaxy at about 515,000 mph

EmbeddingsResponse:
type: object
Expand Down

0 comments on commit 29bbf93

Please sign in to comment.