diff --git a/fern/apis/sdks/generators.yml b/fern/apis/sdks/generators.yml index 8a7a69ef4..ae874f795 100644 --- a/fern/apis/sdks/generators.yml +++ b/fern/apis/sdks/generators.yml @@ -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 diff --git a/fern/apis/sdks/openapi-overrides.yml b/fern/apis/sdks/openapi-overrides.yml new file mode 100644 index 000000000..da459397f --- /dev/null +++ b/fern/apis/sdks/openapi-overrides.yml @@ -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).