From 2df7bf408adb0f256157ab791430112f9dc9ed95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Wed, 28 May 2025 17:22:27 +0200 Subject: [PATCH] Adds new `embedding_type` values to PUT Cohere inference endpoint (#4403) * Adds new embedding_type values to PUT Cohere inference endpoint. * Adds values to the CohereEmbeddingType enum --------- Co-authored-by: kosabogi <105062005+kosabogi@users.noreply.github.com> Co-authored-by: kosabogi (cherry picked from commit dc80ba5a45ecfab4b3d636171496dc7b2d70957f) --- specification/inference/_types/CommonTypes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index d99ff4b33c..5c0757abd2 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -585,6 +585,8 @@ export class CohereServiceSettings { api_key: string /** * For a `text_embedding` task, the types of embeddings you want to get back. + * Use `binary` for binary embeddings, which are encoded as bytes with signed int8 precision. + * Use `bit` for binary embeddings, which are encoded as bytes with signed int8 precision (this is a synonym of `binary`). * Use `byte` for signed int8 embeddings (this is a synonym of `int8`). * Use `float` for the default float embeddings. * Use `int8` for signed int8 embeddings. @@ -625,6 +627,8 @@ export enum CohereServiceType { } export enum CohereEmbeddingType { + binary, + bit, byte, float, int8