Skip to content
Open
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
1 change: 1 addition & 0 deletions fern/apis/sdks/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
api:
specs:
- openapi: ../../../cohere-openapi.yaml
overrides: ./openapi-overrides.yml
settings:
title-as-schema-name: true
type-dates-as-strings: true
Expand Down
127 changes: 127 additions & 0 deletions fern/apis/sdks/openapi-overrides.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
components:
schemas:
EmbedByTypeResponse:
properties:
embeddings:
oneOf:
- type: object
x-fern-audiences:
- public
description: >-
An object with different embedding types. The length of each
embedding type array will be the same as the length of the
original `texts` array. Returned when `embedding_types` is
specified in the request.
properties:
float:
type: array
x-fern-audiences:
- public
description: An array of float embeddings.
items:
type: array
x-fern-audiences:
- public
items:
type: number
x-fern-audiences:
- public
int8:
type: array
x-fern-audiences:
- public
description: >-
An array of signed int8 embeddings. Each value is between
-128 and 127.
items:
type: array
x-fern-audiences:
- public
items:
type: integer
x-fern-audiences:
- public
uint8:
type: array
x-fern-audiences:
- public
description: >-
An array of unsigned int8 embeddings. Each value is between
0 and 255.
items:
type: array
x-fern-audiences:
- public
items:
type: integer
x-fern-audiences:
- public
binary:
type: array
x-fern-audiences:
- public
description: >-
An array of packed signed binary embeddings. The length of
each binary embedding is 1/8 the length of the float
embeddings of the provided model. Each value is between -128
and 127.
items:
type: array
x-fern-audiences:
- public
items:
type: integer
x-fern-audiences:
- public
ubinary:
type: array
x-fern-audiences:
- public
description: >-
An array of packed unsigned binary embeddings. The length of
each binary embedding is 1/8 the length of the float
embeddings of the provided model. Each value is between 0
and 255.
items:
type: array
x-fern-audiences:
- public
items:
type: integer
x-fern-audiences:
- public
base64:
type: array
x-fern-audiences:
- public
description: >-
An array of base64 embeddings. Each string is the result of
appending the float embedding bytes together and base64
encoding that.
items:
type: string
x-fern-audiences:
- public
x-fern-type-name: EmbedByTypeResponseEmbeddings
- type: array
x-fern-audiences:
- public
description: >-
A flat array of embedding vectors. Returned when
`embedding_types` is not specified in the request and the
server does not apply a default.
items:
type: array
x-fern-audiences:
- public
items:
type: number
x-fern-audiences:
- public
x-fern-audiences:
- public
x-fern-type-name: EmbedByTypeResponseEmbeddingsUnion
description: >-
The embeddings returned by the model. Can be either an object keyed
by embedding type (when `embedding_types` is specified) or a flat
array of embedding vectors (when `embedding_types` is omitted).