Skip to content

Commit

Permalink
Merge pull request #24 from samselikoff/embedding-input-supports-arrays
Browse files Browse the repository at this point in the history
Embedding input supports arrays
  • Loading branch information
Nutlope committed Jul 8, 2024
2 parents c4729f0 + 29bbf93 commit 380124e
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 @@ -1193,9 +1193,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 380124e

Please sign in to comment.