-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Jan 25, 2024
1 parent
d00baa2
commit 7f71d8d
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Embeddings API | ||
version: 1.0.0 | ||
paths: | ||
/api/embeddings: | ||
post: | ||
responses: {} | ||
tags: | ||
- Embeddings | ||
operationId: create_embeddings | ||
summary: Create Embeddings | ||
description: Create Embeddings | ||
parameters: [] | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreateEmbeddingsInput' | ||
required: true | ||
servers: [] | ||
components: | ||
schemas: | ||
CreateEmbeddingsInput: | ||
type: object | ||
required: | ||
- text | ||
properties: | ||
text: | ||
type: string | ||
nullable: false | ||
parameters: | ||
page: | ||
name: page | ||
in: query | ||
schema: | ||
format: int64 | ||
default: 1 | ||
minimum: 0 | ||
description: Page number. | ||
limit: | ||
name: limit | ||
in: query | ||
schema: | ||
format: int32 | ||
default: 100 | ||
maximum: 1000 | ||
minimum: 0 | ||
description: Number of results per page. | ||
continuation_id: | ||
name: continuation_id | ||
in: query | ||
schema: | ||
format: int64 | ||
description: Optional, ID of the last item that was retrieved. If provided, | ||
enables faster pagination. | ||
order: | ||
name: order | ||
in: query | ||
schema: | ||
type: string | ||
description: Optional sort order (asc / desc) - default asc. | ||
tags: | ||
- name: Embeddings |